mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
Rename variables to work with VC++'s hokey scoping rules.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19942 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1595,17 +1595,17 @@ static void removeIdenticalCalls(std::list<DSCallSite> &Calls) {
|
||||
Calls.sort();
|
||||
|
||||
// Now that we are in sorted order, eliminate duplicates.
|
||||
std::list<DSCallSite>::iterator I = Calls.begin(), E = Calls.end();
|
||||
if (I != E)
|
||||
std::list<DSCallSite>::iterator CI = Calls.begin(), CE = Calls.end();
|
||||
if (CI != CE)
|
||||
while (1) {
|
||||
std::list<DSCallSite>::iterator OldIt = I++;
|
||||
if (I == E) break;
|
||||
std::list<DSCallSite>::iterator OldIt = CI++;
|
||||
if (CI == CE) break;
|
||||
|
||||
// If this call site is now the same as the previous one, we can delete it
|
||||
// as a duplicate.
|
||||
if (*OldIt == *I) {
|
||||
Calls.erase(I);
|
||||
I = OldIt;
|
||||
if (*OldIt == *CI) {
|
||||
Calls.erase(CI);
|
||||
CI = OldIt;
|
||||
++NumDeleted;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user