mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 20:34:38 +00:00
Avoid variable shadowing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35039 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
47992ea4be
commit
f0e3bb1333
@ -341,8 +341,8 @@ bool LiveVariables::runOnMachineFunction(MachineFunction &MF) {
|
||||
// Convert and transfer the dead / killed information we have gathered into
|
||||
// VirtRegInfo onto MI's.
|
||||
//
|
||||
for (unsigned i = 0, e = VirtRegInfo.size(); i != e; ++i)
|
||||
for (unsigned j = 0, e = VirtRegInfo[i].Kills.size(); j != e; ++j) {
|
||||
for (unsigned i = 0, e1 = VirtRegInfo.size(); i != e1; ++i)
|
||||
for (unsigned j = 0, e2 = VirtRegInfo[i].Kills.size(); j != e2; ++j) {
|
||||
if (VirtRegInfo[i].Kills[j] == VirtRegInfo[i].DefInst)
|
||||
addRegisterDead(i + MRegisterInfo::FirstVirtualRegister,
|
||||
VirtRegInfo[i].Kills[j]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user