projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
447b7fd
)
PR4591: Make sure to initialize the pass manager before using it.
author
Eli Friedman
<eli.friedman@gmail.com>
Mon, 20 Jul 2009 14:50:07 +0000
(14:50 +0000)
committer
Eli Friedman
<eli.friedman@gmail.com>
Mon, 20 Jul 2009 14:50:07 +0000
(14:50 +0000)
llvm-svn: 76422
llvm/examples/Kaleidoscope/toy.cpp
patch
|
blob
|
history
diff --git
a/llvm/examples/Kaleidoscope/toy.cpp
b/llvm/examples/Kaleidoscope/toy.cpp
index 0035f3928d7cd3ce403865f269d4d59d195dc11f..4f9e949829282bbdafd625ad21e877ea2c68d8c1 100644
(file)
--- 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;