[llvm-commits] [llvm] r76422 - /llvm/trunk/examples/Kaleidoscope/toy.cpp
Bob Wilson
bob.wilson at apple.com
Mon Jul 20 09:06:26 PDT 2009
On Jul 20, 2009, at 8:22 AM, Chris Lattner wrote:
>
> On Jul 20, 2009, at 7:50 AM, Eli Friedman wrote:
>
>> Author: efriedma
>> Date: Mon Jul 20 09:50:07 2009
>> New Revision: 76422
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=76422&view=rev
>> Log:
>> PR4591: Make sure to initialize the pass manager before using it.
>
> Why is this needed? Isn't the FunctionPassManager calling doInit on
> all the passes in it before they start?
No, it doesn't. I ran into the same problem in llc on Friday (http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090713/081666.html
).
The FunctionPassManager does the initialization if you call it for a
Module but not for individual Functions.
More information about the llvm-commits
mailing list