[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/DataStructureAA.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Mar 18 15:20:13 PST 2005
Changes in directory llvm/lib/Analysis/DataStructure:
DataStructureAA.cpp updated: 1.27 -> 1.28
---
Log message:
fix a bogus assertion
---
Diffs of the changes: (+1 -1)
DataStructureAA.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Analysis/DataStructure/DataStructureAA.cpp
diff -u llvm/lib/Analysis/DataStructure/DataStructureAA.cpp:1.27 llvm/lib/Analysis/DataStructure/DataStructureAA.cpp:1.28
--- llvm/lib/Analysis/DataStructure/DataStructureAA.cpp:1.27 Thu Mar 17 18:21:03 2005
+++ llvm/lib/Analysis/DataStructure/DataStructureAA.cpp Fri Mar 18 17:18:30 2005
@@ -190,7 +190,7 @@
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) &&
More information about the llvm-commits
mailing list