[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/TopDownClosure.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Nov 11 15:37:00 PST 2002
Changes in directory llvm/lib/Analysis/DataStructure:
TopDownClosure.cpp updated: 1.29 -> 1.30
---
Log message:
Handle a mismatch between # function args and call site args
---
Diffs of the changes:
Index: llvm/lib/Analysis/DataStructure/TopDownClosure.cpp
diff -u llvm/lib/Analysis/DataStructure/TopDownClosure.cpp:1.29 llvm/lib/Analysis/DataStructure/TopDownClosure.cpp:1.30
--- llvm/lib/Analysis/DataStructure/TopDownClosure.cpp:1.29 Sat Nov 9 16:06:59 2002
+++ llvm/lib/Analysis/DataStructure/TopDownClosure.cpp Mon Nov 11 15:36:05 2002
@@ -160,7 +160,8 @@
// Resolve all of the arguments...
Function::aiterator AI = Callee->abegin();
- for (unsigned i = 0, e = NewCS.getNumPtrArgs(); i != e; ++i, ++AI) {
+ for (unsigned i = 0, e = NewCS.getNumPtrArgs();
+ i != e && AI != Callee->aend(); ++i, ++AI) {
// Advance the argument iterator to the first pointer argument...
while (!DS::isPointerType(AI->getType())) {
++AI;
More information about the llvm-commits
mailing list