[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/DataStructure.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Feb 15 10:49:01 PST 2005
Changes in directory llvm/lib/Analysis/DataStructure:
DataStructure.cpp updated: 1.192 -> 1.193
---
Log message:
Add a sanity check.
---
Diffs of the changes: (+1 -0)
DataStructure.cpp | 1 +
1 files changed, 1 insertion(+)
Index: llvm/lib/Analysis/DataStructure/DataStructure.cpp
diff -u llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.192 llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.193
--- llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.192 Tue Feb 15 12:40:55 2005
+++ llvm/lib/Analysis/DataStructure/DataStructure.cpp Tue Feb 15 12:48:48 2005
@@ -1148,6 +1148,7 @@
assert(isa<PointerType>(Ptr->getType()) && "Ptr is not a pointer!");
const Type *Ty = cast<PointerType>(Ptr->getType())->getElementType();
DSNode *N = new DSNode(UseDeclaredType ? Ty : 0, this);
+ assert(ScalarMap[Ptr].isNull() && "Object already in this graph!");
ScalarMap[Ptr] = N;
if (GlobalValue *GV = dyn_cast<GlobalValue>(Ptr)) {
More information about the llvm-commits
mailing list