aboutsummaryrefslogtreecommitdiffstats
path: root/tools/opt
diff options
context:
space:
mode:
Diffstat (limited to 'tools/opt')
-rw-r--r--tools/opt/opt.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index e43b76f..c552d69 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -252,10 +252,9 @@ int main(int argc, char **argv) {
Passes.add(createVerifierPass());
// Write bytecode out to disk or cout as the last step...
- if (!NoOutput && !AnalyzeOnly) {
- llvm_ostream L(*Out);
- Passes.add(new WriteBytecodePass(&L, Out != &std::cout, !NoCompress));
- }
+ llvm_ostream L(*Out);
+ if (!NoOutput && !AnalyzeOnly)
+ Passes.add(new WriteBytecodePass(&L, false, !NoCompress));
// Now that we have all of the passes ready, run them.
Passes.run(*M.get());