mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
Don't crash owhen ComputeLoadResult can't compute the result of the load.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132290 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1f237b0027
commit
bcb85087a7
@ -2444,7 +2444,7 @@ static bool EvaluateFunction(Function *F, Constant *&RetVal,
|
|||||||
Constant *Val = getVal(Values, MSI->getValue());
|
Constant *Val = getVal(Values, MSI->getValue());
|
||||||
Constant *DestVal = ComputeLoadResult(getVal(Values, Ptr),
|
Constant *DestVal = ComputeLoadResult(getVal(Values, Ptr),
|
||||||
MutatedMemory);
|
MutatedMemory);
|
||||||
if (Val->isNullValue() && DestVal->isNullValue()) {
|
if (Val->isNullValue() && DestVal && DestVal->isNullValue()) {
|
||||||
// This memset is a no-op.
|
// This memset is a no-op.
|
||||||
++CurInst;
|
++CurInst;
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user