[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/DataStructure.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Oct 31 09:45:54 PST 2004
Changes in directory llvm/lib/Analysis/DataStructure:
DataStructure.cpp updated: 1.182 -> 1.183
---
Log message:
Add more paranoid assertions :)
---
Diffs of the changes: (+12 -0)
Index: llvm/lib/Analysis/DataStructure/DataStructure.cpp
diff -u llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.182 llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.183
--- llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.182 Sat Oct 30 00:41:23 2004
+++ llvm/lib/Analysis/DataStructure/DataStructure.cpp Sun Oct 31 11:45:40 2004
@@ -1973,6 +1973,18 @@
}
AssertCallNodesInGraph();
AssertAuxCallNodesInGraph();
+
+ // Check that all pointer arguments to any functions in this graph have
+ // destinations.
+ for (ReturnNodesTy::const_iterator RI = ReturnNodes.begin(),
+ E = ReturnNodes.end();
+ RI != E; ++RI) {
+ Function &F = *RI->first;
+ for (Function::aiterator AI = F.abegin(); AI != F.aend(); ++AI)
+ if (isPointerType(AI->getType()))
+ assert(!getNodeForValue(AI).isNull() &&
+ "Pointer argument must be in the scalar map!");
+ }
}
/// computeNodeMapping - Given roots in two different DSGraphs, traverse the
More information about the llvm-commits
mailing list