diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2009-07-20 14:50:07 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2009-07-20 14:50:07 +0000 |
| commit | e04169cc2104ec8904cda6c801eb2be9e641c5e5 (patch) | |
| tree | ea1e0b6a227082019dc5f75cd6bb32735406f383 | |
| parent | 447b7fd4bbc5d081ff7e1e606f8a4e7db152086b (diff) | |
| download | bcm5719-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.cpp | 2 |
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; |

