Fix problem breaking Fhourstones

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5526 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-02-10 18:16:19 +00:00
parent dab73bef89
commit 88c7294b80

View File

@ -92,7 +92,8 @@ void Steens::ResolveFunctionCall(Function *F, const DSCallSite &Call,
// Loop over all pointer arguments, resolving them to their provided pointers // Loop over all pointer arguments, resolving them to their provided pointers
unsigned PtrArgIdx = 0; unsigned PtrArgIdx = 0;
for (Function::aiterator AI = F->abegin(), AE = F->aend(); AI != AE; ++AI) { for (Function::aiterator AI = F->abegin(), AE = F->aend();
AI != AE && PtrArgIdx < Call.getNumPtrArgs(); ++AI) {
hash_map<Value*, DSNodeHandle>::iterator I = ValMap.find(AI); hash_map<Value*, DSNodeHandle>::iterator I = ValMap.find(AI);
if (I != ValMap.end()) // If its a pointer argument... if (I != ValMap.end()) // If its a pointer argument...
I->second.mergeWith(Call.getPtrArg(PtrArgIdx++)); I->second.mergeWith(Call.getPtrArg(PtrArgIdx++));