mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
Don't use invalidated iterators!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26521 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f42f516984
commit
7d5c1e1ed1
@ -107,9 +107,9 @@ static struct PerModuleInfo {
|
||||
}
|
||||
|
||||
// Look for intrinsic functions and CallInst that need to be upgraded
|
||||
for (Module::iterator FI = CurrentModule->begin(),FE = CurrentModule->end();
|
||||
FI != FE; ++FI)
|
||||
UpgradeCallsToIntrinsic(FI);
|
||||
for (Module::iterator FI = CurrentModule->begin(),
|
||||
FE = CurrentModule->end(); FI != FE; )
|
||||
UpgradeCallsToIntrinsic(FI++);
|
||||
|
||||
Values.clear(); // Clear out function local definitions
|
||||
Types.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user