summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-07-20 14:50:07 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-07-20 14:50:07 +0000
commite04169cc2104ec8904cda6c801eb2be9e641c5e5 (patch)
treeea1e0b6a227082019dc5f75cd6bb32735406f383
parent447b7fd4bbc5d081ff7e1e606f8a4e7db152086b (diff)
downloadbcm5719-llvm-e04169cc2104ec8904cda6c801eb2be9e641c5e5.tar.gz
bcm5719-llvm-e04169cc2104ec8904cda6c801eb2be9e641c5e5.zip
PR4591: Make sure to initialize the pass manager before using it.
llvm-svn: 76422
-rw-r--r--llvm/examples/Kaleidoscope/toy.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/examples/Kaleidoscope/toy.cpp b/llvm/examples/Kaleidoscope/toy.cpp
index 0035f3928d7..4f9e9498292 100644
--- a/llvm/examples/Kaleidoscope/toy.cpp
+++ b/llvm/examples/Kaleidoscope/toy.cpp
@@ -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;
OpenPOWER on IntegriCloud