Monomorphize locals
This commit is contained in:
parent
a962835685
commit
21f0dfd014
2 changed files with 18 additions and 10 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue