mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
fix a bogus assertion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20675 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0c9707a190
commit
db7436aae8
@ -190,7 +190,7 @@ DSAA::getModRefInfo(CallSite CS, Value *P, unsigned Size) {
|
||||
DSScalarMap &CallerSM = CallerTDGraph.getScalarMap();
|
||||
DSScalarMap::iterator NI = CallerSM.find(P);
|
||||
if (NI == CallerSM.end()) {
|
||||
if (isa<ConstantPointerNull>(P))
|
||||
if (isa<ConstantPointerNull>(P) || isa<UndefValue>(P))
|
||||
Result = NoModRef; // null is never modified :)
|
||||
else {
|
||||
assert(isa<GlobalVariable>(P) &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user