mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 06:00:28 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76220 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b4cfd15d99
commit
d8aa9fc062
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user