Skip to content

Commit

Permalink
Assign internal linkage to autogenerated FnOnce::call_once() instances.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwoerister committed Oct 4, 2016
1 parent 75df685 commit 29212ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_trans/closure.rs
Expand Up @@ -257,7 +257,7 @@ fn trans_fn_once_adapter_shim<'a, 'tcx>(

// Create the by-value helper.
let function_name = method_instance.symbol_name(ccx.shared());
let lloncefn = declare::declare_fn(ccx, &function_name, llonce_fn_ty);
let lloncefn = declare::define_internal_fn(ccx, &function_name, llonce_fn_ty);
attributes::set_frame_pointer_elimination(ccx, lloncefn);

let (block_arena, fcx): (TypedArena<_>, FunctionContext);
Expand Down

0 comments on commit 29212ec

Please sign in to comment.