@@ -24,7 +24,7 @@ struct CodegenedFunction<'tcx> {
2424
2525pub ( crate ) fn codegen_and_compile_fn < ' tcx > (
2626 tcx : TyCtxt < ' tcx > ,
27- cx : & mut crate :: CodegenCx < ' tcx > ,
27+ cx : & mut crate :: CodegenCx ,
2828 cached_context : & mut Context ,
2929 module : & mut dyn Module ,
3030 instance : Instance < ' tcx > ,
@@ -35,12 +35,12 @@ pub(crate) fn codegen_and_compile_fn<'tcx>(
3535 let cached_func = std:: mem:: replace ( & mut cached_context. func , Function :: new ( ) ) ;
3636 let codegened_func = codegen_fn ( tcx, cx, cached_func, module, instance) ;
3737
38- compile_fn ( cx, cached_context, module, codegened_func) ;
38+ compile_fn ( tcx , cx, cached_context, module, codegened_func) ;
3939}
4040
4141fn codegen_fn < ' tcx > (
4242 tcx : TyCtxt < ' tcx > ,
43- cx : & mut crate :: CodegenCx < ' tcx > ,
43+ cx : & mut crate :: CodegenCx ,
4444 cached_func : Function ,
4545 module : & mut dyn Module ,
4646 instance : Instance < ' tcx > ,
@@ -132,7 +132,8 @@ fn codegen_fn<'tcx>(
132132}
133133
134134fn compile_fn < ' tcx > (
135- cx : & mut crate :: CodegenCx < ' tcx > ,
135+ tcx : TyCtxt < ' tcx > ,
136+ cx : & mut crate :: CodegenCx ,
136137 cached_context : & mut Context ,
137138 module : & mut dyn Module ,
138139 codegened_func : CodegenedFunction < ' tcx > ,
@@ -214,6 +215,7 @@ fn compile_fn<'tcx>(
214215 cx. profiler . verbose_generic_activity ( "generate debug info" ) . run ( || {
215216 if let Some ( debug_context) = debug_context {
216217 debug_context. define_function (
218+ tcx,
217219 codegened_func. func_id ,
218220 codegened_func. symbol_name . name ,
219221 context,
0 commit comments