File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -593,6 +593,7 @@ fn module_codegen(
593
593
let producer = crate :: debuginfo:: producer ( tcx. sess ) ;
594
594
595
595
let profiler = tcx. prof . clone ( ) ;
596
+ let invocation_temp = tcx. sess . invocation_temp . clone ( ) ;
596
597
597
598
OngoingModuleCodegen :: Async ( std:: thread:: spawn ( move || {
598
599
profiler. clone ( ) . generic_activity_with_arg ( "compile functions" , & * cgu_name) . run ( || {
@@ -618,15 +619,15 @@ fn module_codegen(
618
619
& global_asm_config,
619
620
& cgu_name,
620
621
& cx. global_asm ,
621
- cx . invocation_temp . as_deref ( ) ,
622
+ invocation_temp. as_deref ( ) ,
622
623
)
623
624
} ) ?;
624
625
625
626
let codegen_result =
626
627
profiler. generic_activity_with_arg ( "write object file" , & * cgu_name) . run ( || {
627
628
emit_cgu (
628
629
& global_asm_config. output_filenames ,
629
- cx . invocation_temp . as_deref ( ) ,
630
+ invocation_temp. as_deref ( ) ,
630
631
& profiler,
631
632
cgu_name,
632
633
module,
Original file line number Diff line number Diff line change @@ -126,7 +126,6 @@ impl<F: Fn() -> String> Drop for PrintOnPanic<F> {
126
126
/// inside a single codegen unit with the exception of the Cranelift [`Module`](cranelift_module::Module).
127
127
struct CodegenCx {
128
128
output_filenames : Arc < OutputFilenames > ,
129
- invocation_temp : Option < String > ,
130
129
should_write_ir : bool ,
131
130
global_asm : String ,
132
131
debug_context : Option < DebugContext > ,
@@ -144,7 +143,6 @@ impl CodegenCx {
144
143
} ;
145
144
CodegenCx {
146
145
output_filenames : tcx. output_filenames ( ( ) ) . clone ( ) ,
147
- invocation_temp : tcx. sess . invocation_temp . clone ( ) ,
148
146
should_write_ir : crate :: pretty_clif:: should_write_ir ( tcx) ,
149
147
global_asm : String :: new ( ) ,
150
148
debug_context,
You can’t perform that action at this time.
0 commit comments