diff options
Diffstat (limited to 'llvm/examples/Kaleidoscope/toy.cpp')
| -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; |

