1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Fix a crash in SROA. The FunctionPass::doInitialization method was never

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.

llvm-svn: 76220
This commit is contained in:
Bob Wilson 2009-07-17 19:05:13 +00:00
parent 006b15b943
commit 7c323a8936

View File

@ -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);