diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-03-09 06:02:17 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-03-09 06:02:17 +0000 |
commit | f0e3bb13337f59c7f158e4af5aa9a11a2e76fa9d (patch) | |
tree | 4e4a2a0dc0c6d431f3cbef0882811f3b3a52e943 /lib/CodeGen/LiveVariables.cpp | |
parent | 47992ea4be0b5a357178e7f734625e9d4a27492d (diff) |
Avoid variable shadowing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35039 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveVariables.cpp')
-rw-r--r-- | lib/CodeGen/LiveVariables.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/LiveVariables.cpp b/lib/CodeGen/LiveVariables.cpp index a976626b78..aec62dfcdf 100644 --- a/lib/CodeGen/LiveVariables.cpp +++ b/lib/CodeGen/LiveVariables.cpp @@ -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]); |