[llvm-commits] [llvm] r76422 - /llvm/trunk/examples/Kaleidoscope/toy.cpp

Eli Friedman eli.friedman at gmail.com
Mon Jul 20 07:50:16 PDT 2009


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.


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;
 





More information about the llvm-commits mailing list