From: Eli Friedman Date: Mon, 20 Jul 2009 14:50:07 +0000 (+0000) Subject: PR4591: Make sure to initialize the pass manager before using it. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8e9b17198a66ff065ed42a5970a984a854365497;p=oota-llvm.git 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 --- diff --git a/examples/Kaleidoscope/toy.cpp b/examples/Kaleidoscope/toy.cpp index 0035f3928d7..4f9e9498292 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;