[llvm-commits] [llvm] r76422 - /llvm/trunk/examples/Kaleidoscope/toy.cpp
Chris Lattner
clattner at apple.com
Mon Jul 20 08:22:22 PDT 2009
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?
-Chris
>
>
> Modified:
> llvm/trunk/examples/Kaleidoscope/toy.cpp
>
> Modified: llvm/trunk/examples/Kaleidoscope/toy.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/toy.cpp?rev=76422&r1=76421&r2=76422&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm/trunk/examples/Kaleidoscope/toy.cpp (original)
> +++ llvm/trunk/examples/Kaleidoscope/toy.cpp Mon Jul 20 09:50:07 2009
> @@ -1125,6 +1125,8 @@
> // Simplify the control flow graph (deleting unreachable blocks,
> etc).
> OurFPM.add(createCFGSimplificationPass());
>
> + OurFPM.doInitialization();
> +
> // Set the global so the code gen can use this.
> TheFPM = &OurFPM;
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list