forked from OSchip/llvm-project
Be conservative if getresult operand is neither call nor invoke.
llvm-svn: 49430
This commit is contained in:
parent
43e0633048
commit
a7dfbc0366
|
@ -695,7 +695,8 @@ void SCCPSolver::visitGetResultInst(GetResultInst &GRI) {
|
|||
else if (InvokeInst *II = dyn_cast<InvokeInst>(Aggr))
|
||||
F = II->getCalledFunction();
|
||||
|
||||
assert (F && "Invalid GetResultInst operands!");
|
||||
if (!F)
|
||||
return;
|
||||
|
||||
std::multimap<Function*, LatticeValIndexed>::iterator It, E;
|
||||
tie(It, E) = TrackedMultipleRetVals.equal_range(F);
|
||||
|
|
Loading…
Reference in New Issue