mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-22 03:28:35 +00:00
Be conservative if getresult operand is neither call nor invoke.
llvm-svn: 49430
This commit is contained in:
parent
ca7e0e21f3
commit
47b4a18b75
@ -690,12 +690,13 @@ void SCCPSolver::visitGetResultInst(GetResultInst &GRI) {
|
|||||||
unsigned Idx = GRI.getIndex();
|
unsigned Idx = GRI.getIndex();
|
||||||
Value *Aggr = GRI.getOperand(0);
|
Value *Aggr = GRI.getOperand(0);
|
||||||
Function *F = NULL;
|
Function *F = NULL;
|
||||||
if (CallInst *CI = dyn_cast<CallInst>(Aggr))
|
if (CallInst *CI = dyn_cast<CallInst>(Aggr))
|
||||||
F = CI->getCalledFunction();
|
F = CI->getCalledFunction();
|
||||||
else if (InvokeInst *II = dyn_cast<InvokeInst>(Aggr))
|
else if (InvokeInst *II = dyn_cast<InvokeInst>(Aggr))
|
||||||
F = II->getCalledFunction();
|
F = II->getCalledFunction();
|
||||||
|
|
||||||
assert (F && "Invalid GetResultInst operands!");
|
if (!F)
|
||||||
|
return;
|
||||||
|
|
||||||
std::multimap<Function*, LatticeValIndexed>::iterator It, E;
|
std::multimap<Function*, LatticeValIndexed>::iterator It, E;
|
||||||
tie(It, E) = TrackedMultipleRetVals.equal_range(F);
|
tie(It, E) = TrackedMultipleRetVals.equal_range(F);
|
||||||
|
Loading…
Reference in New Issue
Block a user