[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/DataStructure.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Feb 5 18:16:01 PST 2003
Changes in directory llvm/lib/Analysis/DataStructure:
DataStructure.cpp updated: 1.87 -> 1.88
---
Log message:
Fix an assertion failure
---
Diffs of the changes:
Index: llvm/lib/Analysis/DataStructure/DataStructure.cpp
diff -u llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.87 llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.88
--- llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.87 Wed Feb 5 15:59:56 2003
+++ llvm/lib/Analysis/DataStructure/DataStructure.cpp Wed Feb 5 18:15:08 2003
@@ -695,14 +695,14 @@
for (unsigned i = 0, e = CS.getNumPtrArgs(); i != e; ++i, ++AI) {
// Advance the argument iterator to the first pointer argument...
- while (!isPointerType(AI->getType())) {
+ while (AI != F.aend() && !isPointerType(AI->getType())) {
++AI;
#ifndef NDEBUG
if (AI == F.aend())
std::cerr << "Bad call to Function: " << F.getName() << "\n";
#endif
- assert(AI != F.aend() && "# Args provided is not # Args required!");
}
+ if (AI == F.aend()) break;
// Add the link from the argument scalar to the provided value
DSNodeHandle &NH = (*ScalarMap)[AI];
More information about the llvm-commits
mailing list