mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
dab73bef89
commit
88c7294b80
@ -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++));
|
||||||
|
Loading…
Reference in New Issue
Block a user