[CodeGen] Use range-based for loops (NFC)

This commit is contained in:
Kazu Hirata
2021-12-04 08:48:04 -08:00
parent 8bd62119f9
commit ca2f53897a
9 changed files with 51 additions and 69 deletions

View File

@@ -833,8 +833,7 @@ void ModuleBitcodeWriter::writeAttributeTable() {
Stream.EnterSubblock(bitc::PARAMATTR_BLOCK_ID, 3);
SmallVector<uint64_t, 64> Record;
for (unsigned i = 0, e = Attrs.size(); i != e; ++i) {
AttributeList AL = Attrs[i];
for (const AttributeList &AL : Attrs) {
for (unsigned i : AL.indexes()) {
AttributeSet AS = AL.getAttributes(i);
if (AS.hasAttributes())