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
@ -404,7 +404,7 @@ static bool LinkGlobals(Module *Dest, const Module *Src,
|
|||||||
GlobalsByName.find(SGV->getName());
|
GlobalsByName.find(SGV->getName());
|
||||||
if (EGV != GlobalsByName.end())
|
if (EGV != GlobalsByName.end())
|
||||||
DGV = dyn_cast<GlobalVariable>(EGV->second);
|
DGV = dyn_cast<GlobalVariable>(EGV->second);
|
||||||
if (DGV && RecursiveResolveTypes(SGV->getType(), DGV->getType(), ST, ""))
|
if (DGV && RecursiveResolveTypes(SGV->getType(), DGV->getType(),ST, ""))
|
||||||
DGV = 0; // FIXME: gross.
|
DGV = 0; // FIXME: gross.
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -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