Don't break -g in the presence of monomorphization.

This commit is contained in:
Josh Matthews 2012-03-16 20:19:32 -04:00
parent 154a3fdf44
commit d958123d8a

View File

@ -1900,6 +1900,7 @@ fn monomorphic_fn(ccx: @crate_ctxt, fn_id: ast::def_id, real_substs: [ty::t],
let s = mangle_exported_name(ccx, pt, mono_ty);
let lldecl = decl_cdecl_fn(ccx.llmod, s, llfty);
ccx.monomorphized.insert(hash_id, lldecl);
ccx.item_symbols.insert(fn_id.node, s);
let psubsts = some({tys: substs, vtables: vtables, bounds: tpt.bounds});
alt check map_node {