summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenInstruction.cpp
diff options
context:
space:
mode:
authorJaved Absar <javed.absar@arm.com>2017-10-06 09:32:45 +0000
committerJaved Absar <javed.absar@arm.com>2017-10-06 09:32:45 +0000
commit41705e9e09fcea60220e633ed43d87ff2cba9235 (patch)
tree7320a17ea5dd5c5281d5149683003ce150fca2f0 /llvm/utils/TableGen/CodeGenInstruction.cpp
parent17efb6a9ed0f3edc4e403731941538564fdc1a92 (diff)
downloadbcm5719-llvm-41705e9e09fcea60220e633ed43d87ff2cba9235.tar.gz
bcm5719-llvm-41705e9e09fcea60220e633ed43d87ff2cba9235.zip
[TableGen] : CodeGenInsrtuction modify to range loop. NFC.
llvm-svn: 315050
Diffstat (limited to 'llvm/utils/TableGen/CodeGenInstruction.cpp')
-rw-r--r--llvm/utils/TableGen/CodeGenInstruction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.cpp b/llvm/utils/TableGen/CodeGenInstruction.cpp
index 02046a58d6b..8fa3050e078 100644
--- a/llvm/utils/TableGen/CodeGenInstruction.cpp
+++ b/llvm/utils/TableGen/CodeGenInstruction.cpp
@@ -128,8 +128,8 @@ CGIOperandList::CGIOperandList(Record *R) : TheDef(R) {
// Make sure the constraints list for each operand is large enough to hold
// constraint info, even if none is present.
- for (unsigned i = 0, e = OperandList.size(); i != e; ++i)
- OperandList[i].Constraints.resize(OperandList[i].MINumOperands);
+ for (OperandInfo &OpInfo : OperandList)
+ OpInfo.Constraints.resize(OpInfo.MINumOperands);
}
OpenPOWER on IntegriCloud