Skip to content

Commit 5d41d4c

Browse files
committed
---
yaml --- r: 81654 b: refs/heads/master c: 9e636f1 h: refs/heads/master v: v3
1 parent 3fbd1ab commit 5d41d4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 10d26f8daf52ca60b785712682c1962e98954fd9
2+
refs/heads/master: 9e636f106d50f948ce90738683fba416bb265796
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6c08cc2db4f98e9f07ae7d50338396c4123c2f0a
55
refs/heads/try: 70152ff55722878cde684ee6462c14c65f2c4729

trunk/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)