mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Avoid deleting the ostream more than once.
llvm-svn: 3816
This commit is contained in:
parent
4de8721e87
commit
3bedbd7335
@ -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));
|
||||
|
@ -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));
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user