projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e425844
)
Handle a mismatch between # function args and call site args
author
Chris Lattner
<sabre@nondot.org>
Mon, 11 Nov 2002 21:36:05 +0000
(21:36 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 11 Nov 2002 21:36:05 +0000
(21:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4696
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/DataStructure/TopDownClosure.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/DataStructure/TopDownClosure.cpp
b/lib/Analysis/DataStructure/TopDownClosure.cpp
index 5c15b50f13aa7ee16410f8ed816372f2629b36f6..aa9a6a94c6c8096dd44ffa34e42c8a3a1f978ea3 100644
(file)
--- a/
lib/Analysis/DataStructure/TopDownClosure.cpp
+++ b/
lib/Analysis/DataStructure/TopDownClosure.cpp
@@
-160,7
+160,8
@@
void TDDataStructures::calculateGraph(Function &F) {
// 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;