Skip to content

Commit 203b730

Browse files
committed
---
yaml --- r: 1740 b: refs/heads/master c: d31bfc8 h: refs/heads/master v: v3
1 parent 3d65531 commit 203b730

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 4691a7515079c56895bae727b2b7aa92a784f1a4
2+
refs/heads/master: d31bfc8692fa311bd179ed61a14c50c285b46dc7

trunk/src/comp/middle/trans.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1478,7 +1478,9 @@ fn declare_generic_glue(@crate_ctxt cx, @ty.t t, str name) -> ValueRef {
14781478

14791479
auto fn_name = cx.names.next("_rust_" + name) + sep() + ty.ty_to_str(t);
14801480
fn_name = sanitize(fn_name);
1481-
ret decl_fastcall_fn(cx.llmod, fn_name, llfnty);
1481+
auto llfn = decl_fastcall_fn(cx.llmod, fn_name, llfnty);
1482+
llvm.LLVMSetLinkage(llfn, lib.llvm.LLVMPrivateLinkage as llvm.Linkage);
1483+
ret llfn;
14821484
}
14831485

14841486
fn make_generic_glue(@crate_ctxt cx, @ty.t t, ValueRef llfn,

0 commit comments

Comments
 (0)