diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-18 23:30:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-18 23:30:05 +0000 |
commit | d14d37614b3e6caf58f64034c4e52425fba14e0a (patch) | |
tree | 1d7ef76d564dcaacb0a3f2c9c08db7b9d18c9c72 /tools/dis | |
parent | d3448cd7a69d2c8ccb0a5464cf564c7447385b14 (diff) | |
download | external_llvm-d14d37614b3e6caf58f64034c4e52425fba14e0a.zip external_llvm-d14d37614b3e6caf58f64034c4e52425fba14e0a.tar.gz external_llvm-d14d37614b3e6caf58f64034c4e52425fba14e0a.tar.bz2 |
Avoid deleting the ostream more than once.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3816 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/dis')
-rw-r--r-- | tools/dis/dis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ int main(int argc, char **argv) { 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)); |