mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-12 15:05:06 +00:00
Don't crash on multiple return value with no obvious inserted value.
Fixes PR4314. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73007 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b9a4cacc91
commit
d7f20b6b98
@ -639,8 +639,8 @@ void SCCPSolver::visitReturnInst(ReturnInst &I) {
|
||||
DenseMap<std::pair<Function*, unsigned>, LatticeVal>::iterator
|
||||
It = TrackedMultipleRetVals.find(std::make_pair(F, i));
|
||||
if (It == TrackedMultipleRetVals.end()) break;
|
||||
Value *Val = FindInsertedValue(I.getOperand(0), i);
|
||||
mergeInValue(It->second, F, getValueState(Val));
|
||||
if (Value *Val = FindInsertedValue(I.getOperand(0), i))
|
||||
mergeInValue(It->second, F, getValueState(Val));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user