From e04169cc2104ec8904cda6c801eb2be9e641c5e5 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Mon, 20 Jul 2009 14:50:07 +0000 Subject: [PATCH] PR4591: Make sure to initialize the pass manager before using it. llvm-svn: 76422 --- llvm/examples/Kaleidoscope/toy.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/examples/Kaleidoscope/toy.cpp b/llvm/examples/Kaleidoscope/toy.cpp index 0035f3928d7c..4f9e94982928 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; -- 2.34.1