Skip to content

Commit fb66c47

Browse files
kazutakahirataaaryanshukla
authored andcommitted
[DWARFLinker] Use a range-based for loop (NFC) (llvm#98585)
1 parent c71ee04 commit fb66c47

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/DWARFLinker/Parallel/DWARFLinkerUnit.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ void DwarfUnit::emitDwarfAbbrevEntry(const DIEAbbrev &Abbrev,
7070

7171
// For each attribute description.
7272
const SmallVectorImpl<DIEAbbrevData> &Data = Abbrev.getData();
73-
for (unsigned i = 0, N = Data.size(); i < N; ++i) {
74-
const DIEAbbrevData &AttrData = Data[i];
75-
73+
for (const DIEAbbrevData &AttrData : Data) {
7674
// Emit attribute type.
7775
encodeULEB128(AttrData.getAttribute(), AbbrevSection.OS);
7876

0 commit comments

Comments
 (0)