mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Passes return true if they change something, not if they fail
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@869 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7fe27874be
commit
05e5e070ee
@ -190,8 +190,11 @@ int main(int argc, char **argv) {
|
||||
Passes.push_back(new EmitAssembly(Target, Out, Out != &cout));
|
||||
}
|
||||
|
||||
// Run our queue of passes all at once now, efficiently.
|
||||
return Pass::runAllPassesAndFree(M.get(), Passes);
|
||||
// Run our queue of passes all at once now, efficiently. This form of
|
||||
// runAllPasses frees the Pass objects after runAllPasses completes.
|
||||
Pass::runAllPassesAndFree(M.get(), Passes);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user