Skip to content

Commit

Permalink
Don't break -g in the presence of monomorphization.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdm committed Mar 17, 2012
1 parent 154a3fd commit d958123
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rustc/middle/trans/base.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit d958123

Please sign in to comment.