Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: src/IceInst.cpp

Issue 619893002: Subzero: Auto-awesome iterators. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Make some iterator element names more uniform Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/IceInst.cpp
diff --git a/src/IceInst.cpp b/src/IceInst.cpp
index 9602935a478544e7124b3cfd4ad1c02c936d2a5a..c189214af99915e57a8b1922fbb2ce1306e19b88 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 (auto &Var : KilledRegs)
addSource(Var);
- }
}
// ======================== Dump routines ======================== //

Powered by Google App Engine
This is Rietveld 408576698