[llvm] r315321 - [TableGen] Convert VarDef to range_loop. NFC.
Javed Absar via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 10 08:58:45 PDT 2017
Author: javed.absar
Date: Tue Oct 10 08:58:45 2017
New Revision: 315321
URL: http://llvm.org/viewvc/llvm-project?rev=315321&view=rev
Log:
[TableGen] Convert VarDef to range_loop. NFC.
Modified:
llvm/trunk/utils/TableGen/CodeGenSchedule.cpp
Modified: llvm/trunk/utils/TableGen/CodeGenSchedule.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenSchedule.cpp?rev=315321&r1=315320&r2=315321&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenSchedule.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenSchedule.cpp Tue Oct 10 08:58:45 2017
@@ -1099,8 +1099,8 @@ void PredTransitions::getIntersectingVar
if (AliasRW.HasVariants) {
const RecVec VarDefs = AliasRW.TheDef->getValueAsListOfDefs("Variants");
- for (RecIter RI = VarDefs.begin(), RE = VarDefs.end(); RI != RE; ++RI)
- Variants.push_back(TransVariant(*RI, AliasRW.Index, AliasProcIdx, 0));
+ for (Record *VD : VarDefs)
+ Variants.push_back(TransVariant(VD, AliasRW.Index, AliasProcIdx, 0));
}
if (AliasRW.IsSequence) {
Variants.push_back(
More information about the llvm-commits
mailing list