[llvm-commits] CVS: llvm/lib/CodeGen/LiveVariables.cpp
Evan Cheng
evan.cheng at apple.com
Thu Mar 8 22:02:34 PST 2007
Changes in directory llvm/lib/CodeGen:
LiveVariables.cpp updated: 1.68 -> 1.69
---
Log message:
Avoid variable shadowing.
---
Diffs of the changes: (+2 -2)
LiveVariables.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/CodeGen/LiveVariables.cpp
diff -u llvm/lib/CodeGen/LiveVariables.cpp:1.68 llvm/lib/CodeGen/LiveVariables.cpp:1.69
--- llvm/lib/CodeGen/LiveVariables.cpp:1.68 Mon Feb 19 15:49:53 2007
+++ llvm/lib/CodeGen/LiveVariables.cpp Fri Mar 9 00:02:17 2007
@@ -341,8 +341,8 @@
// 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]);
More information about the llvm-commits
mailing list