forked from OSchip/llvm-project
PR4591: Make sure to initialize the pass manager before using it.
llvm-svn: 76422
This commit is contained in:
parent
447b7fd4bb
commit
e04169cc21
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue