Skip to content

Commit 9e636f1

Browse files
committed
auto merge of rust-lang#9272 : luqmana/rust/esln, r=catamorphism
Fixes rust-lang#9270
2 parents 10d26f8 + 1ce657a commit 9e636f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/trans/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2660,7 +2660,7 @@ pub fn get_item_val(ccx: @mut CrateContext, id: ast::NodeId) -> ValueRef {
26602660
foreign::register_foreign_item_fn(ccx, abis, &path, ni)
26612661
}
26622662
ast::foreign_item_static(*) => {
2663-
let ident = token::ident_to_str(&ni.ident);
2663+
let ident = foreign::link_name(ccx, ni);
26642664
let g = do ident.with_c_str |buf| {
26652665
unsafe {
26662666
let ty = type_of(ccx, ty);

0 commit comments

Comments
 (0)