Skip to content

Commit d958123

Browse files
committed
Don't break -g in the presence of monomorphization.
1 parent 154a3fd commit d958123

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rustc/middle/trans/base.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1900,6 +1900,7 @@ fn monomorphic_fn(ccx: @crate_ctxt, fn_id: ast::def_id, real_substs: [ty::t],
19001900
let s = mangle_exported_name(ccx, pt, mono_ty);
19011901
let lldecl = decl_cdecl_fn(ccx.llmod, s, llfty);
19021902
ccx.monomorphized.insert(hash_id, lldecl);
1903+
ccx.item_symbols.insert(fn_id.node, s);
19031904

19041905
let psubsts = some({tys: substs, vtables: vtables, bounds: tpt.bounds});
19051906
alt check map_node {

0 commit comments

Comments
 (0)