PR4591: Make sure to initialize the pass manager before using it.
authorEli Friedman <eli.friedman@gmail.com>
Mon, 20 Jul 2009 14:50:07 +0000 (14:50 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Mon, 20 Jul 2009 14:50:07 +0000 (14:50 +0000)
llvm-svn: 76422

llvm/examples/Kaleidoscope/toy.cpp

index 0035f3928d7cd3ce403865f269d4d59d195dc11f..4f9e949829282bbdafd625ad21e877ea2c68d8c1 100644 (file)
@@ -1125,6 +1125,8 @@ int main() {
     // 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;