Index: src/IceInst.cpp |
diff --git a/src/IceInst.cpp b/src/IceInst.cpp |
index 9602935a478544e7124b3cfd4ad1c02c936d2a5a..57b0bd1ec055e8adaf6e6010a462210cf30fc38b 100644 |
--- a/src/IceInst.cpp |
+++ b/src/IceInst.cpp |
@@ -420,11 +420,8 @@ InstFakeKill::InstFakeKill(Cfg *Func, const VarList &KilledRegs, |
const Inst *Linked) |
: InstHighLevel(Func, Inst::FakeKill, KilledRegs.size(), NULL), |
Linked(Linked) { |
- for (VarList::const_iterator I = KilledRegs.begin(), E = KilledRegs.end(); |
- I != E; ++I) { |
- Variable *Var = *I; |
+ for (Variable *Var : KilledRegs) |
addSource(Var); |
- } |
} |
// ======================== Dump routines ======================== // |