summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1f237b0)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132290
91177308-0d34-0410-b5e6-
96231b3b80d8
Constant *Val = getVal(Values, MSI->getValue());
Constant *DestVal = ComputeLoadResult(getVal(Values, Ptr),
MutatedMemory);
Constant *Val = getVal(Values, MSI->getValue());
Constant *DestVal = ComputeLoadResult(getVal(Values, Ptr),
MutatedMemory);
- if (Val->isNullValue() && DestVal->isNullValue()) {
+ if (Val->isNullValue() && DestVal && DestVal->isNullValue()) {
// This memset is a no-op.
++CurInst;
continue;
// This memset is a no-op.
++CurInst;
continue;