diff options
author | Chris Lattner <sabre@nondot.org> | 2003-02-06 00:15:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-02-06 00:15:08 +0000 |
commit | 5d2745801c9585780228553377b984810f4f5e73 (patch) | |
tree | f6a545d9f7c03623648ef9e429db10041e2e2a34 /lib/Analysis/DataStructure/DataStructure.cpp | |
parent | 923fc05b3a95efad270b283f97b2670152a41efb (diff) |
Fix an assertion failure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5496 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/DataStructure.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/DataStructure.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp index cf117bbd6b..5a5f2177c6 100644 --- a/lib/Analysis/DataStructure/DataStructure.cpp +++ b/lib/Analysis/DataStructure/DataStructure.cpp @@ -695,14 +695,14 @@ void DSGraph::mergeInGraph(DSCallSite &CS, const DSGraph &Graph, 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]; |