1
Fork 0

Monomorphize locals

This commit is contained in:
bjorn3 2019-11-11 20:49:20 +01:00
parent a962835685
commit 21f0dfd014
2 changed files with 18 additions and 10 deletions

View file

@ -17,7 +17,7 @@ pub fn trans_fn<'clif, 'tcx, B: Backend + 'static>(
let mut debug_context = cx
.debug_context
.as_mut()
.map(|debug_context| FunctionDebugContext::new(debug_context, mir, func_id, &name, &sig));
.map(|debug_context| FunctionDebugContext::new(debug_context, instance, func_id, &name, &sig));
// Make FunctionBuilder
let mut func = Function::with_name_signature(ExternalName::user(0, 0), sig);
@ -92,7 +92,7 @@ pub fn trans_fn<'clif, 'tcx, B: Backend + 'static>(
let isa = cx.module.isa();
debug_context
.as_mut()
.map(|x| x.define(tcx, context, isa, &source_info_set));
.map(|x| x.define(context, isa, &source_info_set));
// Clear context to make it usable for the next function
context.clear();