projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4cfd15
)
Fix a crash in SROA. The FunctionPass::doInitialization method was never
author
Bob Wilson
<bob.wilson@apple.com>
Fri, 17 Jul 2009 19:05:13 +0000
(19:05 +0000)
committer
Bob Wilson
<bob.wilson@apple.com>
Fri, 17 Jul 2009 19:05:13 +0000
(19:05 +0000)
being called so that Context was never initialized. I'm not sure if this
is the right fix but at least it keeps opt from crashing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76220
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/opt/opt.cpp
patch
|
blob
|
history
diff --git
a/tools/opt/opt.cpp
b/tools/opt/opt.cpp
index b962ad955767c88c6182f7e3f8e35dbe2cb9303a..739fed1de76c7b98e7c884cc0f54c21317cdc576 100644
(file)
--- a/
tools/opt/opt.cpp
+++ b/
tools/opt/opt.cpp
@@
-504,6
+504,7
@@
int main(int argc, char **argv) {
}
if (OptLevelO1 || OptLevelO2 || OptLevelO3) {
+ FPasses->doInitialization();
for (Module::iterator I = M.get()->begin(), E = M.get()->end();
I != E; ++I)
FPasses->run(*I);