[Bitcode] Use range-based for loops (NFC) (#97776)

This commit is contained in:
Kazu Hirata authored and GitHub committed 2024-07-07 06:34:18 +09:00
1 parent 9abb574f9a
commit 40c12648c6
3 files changed
+14 -15

No files matched your search

+2 -2
View File
@@ -1988,8 +1988,8 @@ Error BitcodeReader::parseAttributeBlock() {
Attrs.clear();
break;
case bitc::PARAMATTR_CODE_ENTRY: // ENTRY: [attrgrp0, attrgrp1, ...]
for (unsigned i = 0, e = Record.size(); i != e; ++i)
Attrs.push_back(MAttributeGroups[Record[i]]);
for (uint64_t Val : Record)
Attrs.push_back(MAttributeGroups[Val]);
MAttributes.push_back(AttributeList::get(Context, Attrs));
Attrs.clear();