Skip to content

Commit c88fc06

Browse files
committed
rustc: Fix output name of optimized glue when --save-temps is on
1 parent 6f8b9e1 commit c88fc06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comp/back/link.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ mod write {
161161
// Always output the bitcode file with --save-temps
162162
auto filename = mk_intermediate_name(output, "opt.bc");
163163
llvm::LLVMRunPassManager(pm.llpm, llmod);
164-
llvm::LLVMWriteBitcodeToFile(llmod, str::buf(output));
164+
llvm::LLVMWriteBitcodeToFile(llmod, str::buf(filename));
165165
pm = mk_pass_manager();
166166

167167
// Save the assembly file if -S is used

0 commit comments

Comments
 (0)