diff options
-rw-r--r-- | llvm/utils/TableGen/InstrInfoEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/InstrInfoEmitter.cpp b/llvm/utils/TableGen/InstrInfoEmitter.cpp index 47e705e5314..044e9e21151 100644 --- a/llvm/utils/TableGen/InstrInfoEmitter.cpp +++ b/llvm/utils/TableGen/InstrInfoEmitter.cpp @@ -75,8 +75,8 @@ private: static void PrintDefList(const std::vector<Record*> &Uses, unsigned Num, raw_ostream &OS) { OS << "static const MCPhysReg ImplicitList" << Num << "[] = { "; - for (unsigned i = 0, e = Uses.size(); i != e; ++i) - OS << getQualifiedName(Uses[i]) << ", "; + for (Record *U : Uses) + OS << getQualifiedName(U) << ", "; OS << "0 };\n"; } |