aboutsummaryrefslogtreecommitdiffstats
path: root/examples/Kaleidoscope
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
commitdc45402569e69273c06d4106193b4888b5e9197a (patch)
tree6bfdb19ed7e61d689a83110bd530e300d520e2fd /examples/Kaleidoscope
parentc4d2dafd1427ec9835cb3896ddc2c2f7b178b920 (diff)
downloadexternal_llvm-dc45402569e69273c06d4106193b4888b5e9197a.zip
external_llvm-dc45402569e69273c06d4106193b4888b5e9197a.tar.gz
external_llvm-dc45402569e69273c06d4106193b4888b5e9197a.tar.bz2
PR4591: Make sure to initialize the pass manager before using it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76422 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/Kaleidoscope')
-rw-r--r--examples/Kaleidoscope/toy.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/Kaleidoscope/toy.cpp b/examples/Kaleidoscope/toy.cpp
index 0035f39..4f9e949 100644
--- a/examples/Kaleidoscope/toy.cpp
+++ b/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;