Avoid deleting the ostream more than once.

llvm-svn: 3816
This commit is contained in:
Chris Lattner 2002-09-18 23:30:05 +00:00
parent 7369140fee
commit 437254f29e
3 changed files with 3 additions and 3 deletions

View File

@ -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));

View File

@ -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));

View File

@ -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));