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:
Chris Lattner 2001-10-18 01:31:22 +00:00
parent 7fe27874be
commit 05e5e070ee

View File

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