mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
Don't increment a dead iterator
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17904 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
429a9cbc2e
commit
a63acbfeab
@ -691,8 +691,7 @@ static bool LinkFunctionBody(Function *Dest, Function *Src,
|
|||||||
*OI = RemapOperand(*OI, GlobalMap);
|
*OI = RemapOperand(*OI, GlobalMap);
|
||||||
|
|
||||||
// There is no need to map the arguments anymore.
|
// There is no need to map the arguments anymore.
|
||||||
for (Function::aiterator I = Src->abegin(), E = Src->aend();
|
for (Function::aiterator I = Src->abegin(), E = Src->aend(); I != E; ++I)
|
||||||
I != E; ++I, ++DI)
|
|
||||||
GlobalMap.erase(I);
|
GlobalMap.erase(I);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user