mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 21:29:41 +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,7 +639,7 @@ void SCCPSolver::visitReturnInst(ReturnInst &I) {
|
|||||||
DenseMap<std::pair<Function*, unsigned>, LatticeVal>::iterator
|
DenseMap<std::pair<Function*, unsigned>, LatticeVal>::iterator
|
||||||
It = TrackedMultipleRetVals.find(std::make_pair(F, i));
|
It = TrackedMultipleRetVals.find(std::make_pair(F, i));
|
||||||
if (It == TrackedMultipleRetVals.end()) break;
|
if (It == TrackedMultipleRetVals.end()) break;
|
||||||
Value *Val = FindInsertedValue(I.getOperand(0), i);
|
if (Value *Val = FindInsertedValue(I.getOperand(0), i))
|
||||||
mergeInValue(It->second, F, getValueState(Val));
|
mergeInValue(It->second, F, getValueState(Val));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user