about summary refs log tree commit diff
path: root/src/comp
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2011-05-18 18:48:41 -0700
committerPatrick Walton <pcwalton@mimiga.net>2011-05-18 18:48:41 -0700
commitc88fc06b40c8f950ea2335e80bad0bdfd878898e (patch)
treef72c4a2ffd56c73ecd7ec103a0634f8ea9e82327 /src/comp
parent6f8b9e176ffb225ebfda95619c2f6d2d87d270e9 (diff)
downloadrust-c88fc06b40c8f950ea2335e80bad0bdfd878898e.tar.gz
rust-c88fc06b40c8f950ea2335e80bad0bdfd878898e.zip
rustc: Fix output name of optimized glue when --save-temps is on
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/back/link.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/back/link.rs b/src/comp/back/link.rs
index 60256eeb435..09a4079b1f8 100644
--- a/src/comp/back/link.rs
+++ b/src/comp/back/link.rs
@@ -161,7 +161,7 @@ mod write {
                 // Always output the bitcode file with --save-temps
                 auto filename = mk_intermediate_name(output, "opt.bc");
                 llvm::LLVMRunPassManager(pm.llpm, llmod);
-                llvm::LLVMWriteBitcodeToFile(llmod, str::buf(output));
+                llvm::LLVMWriteBitcodeToFile(llmod, str::buf(filename));
                 pm = mk_pass_manager();
 
                 // Save the assembly file if -S is used