Avoid deleting the ostream more than once.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3816 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/dis/dis.cpp b/tools/dis/dis.cpp
index 8efc29f..68ac532 100644
--- a/tools/dis/dis.cpp
+++ b/tools/dis/dis.cpp
@@ -106,7 +106,7 @@
switch (WriteMode) {
case llvm: // Output LLVM assembly
- Passes.add(new PrintModulePass(Out, Out != &std::cout));
+ Passes.add(new PrintModulePass(Out, false));
break;
case c: // Convert LLVM to C
Passes.add(createWriteToCPass(*Out));