auto merge of #9272 : luqmana/rust/esln, r=catamorphism

Fixes #9270
This commit is contained in:
bors 2013-09-18 06:45:53 -07:00
commit 9e636f106d
1 changed files with 1 additions and 1 deletions

View File

@ -2660,7 +2660,7 @@ pub fn get_item_val(ccx: @mut CrateContext, id: ast::NodeId) -> ValueRef {
foreign::register_foreign_item_fn(ccx, abis, &path, ni)
}
ast::foreign_item_static(*) => {
let ident = token::ident_to_str(&ni.ident);
let ident = foreign::link_name(ccx, ni);
let g = do ident.with_c_str |buf| {
unsafe {
let ty = type_of(ccx, ty);