mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-20 10:42:36 +00:00
Fix opt -o option. Don't pass a pointer to an auto variable which is going
away before it's needed, and don't try to delete that pointer! llvm-svn: 32055
This commit is contained in:
parent
29d42331ad
commit
1b245e4f5c
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user