forked from OSchip/llvm-project
parent
80614ee5ef
commit
f7979c2f2b
|
@ -695,14 +695,14 @@ void DSGraph::mergeInGraph(DSCallSite &CS, const DSGraph &Graph,
|
||||||
|
|
||||||
for (unsigned i = 0, e = CS.getNumPtrArgs(); i != e; ++i, ++AI) {
|
for (unsigned i = 0, e = CS.getNumPtrArgs(); i != e; ++i, ++AI) {
|
||||||
// Advance the argument iterator to the first pointer argument...
|
// Advance the argument iterator to the first pointer argument...
|
||||||
while (!isPointerType(AI->getType())) {
|
while (AI != F.aend() && !isPointerType(AI->getType())) {
|
||||||
++AI;
|
++AI;
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
if (AI == F.aend())
|
if (AI == F.aend())
|
||||||
std::cerr << "Bad call to Function: " << F.getName() << "\n";
|
std::cerr << "Bad call to Function: " << F.getName() << "\n";
|
||||||
#endif
|
#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
|
// Add the link from the argument scalar to the provided value
|
||||||
DSNodeHandle &NH = (*ScalarMap)[AI];
|
DSNodeHandle &NH = (*ScalarMap)[AI];
|
||||||
|
|
Loading…
Reference in New Issue