Skip to content

Commit

Permalink
[DWARFLinker] Use a range-based for loop (NFC) (#98585)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata authored Jul 12, 2024
1 parent c471d36 commit 83845b1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions llvm/lib/DWARFLinker/Parallel/DWARFLinkerUnit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ void DwarfUnit::emitDwarfAbbrevEntry(const DIEAbbrev &Abbrev,

// For each attribute description.
const SmallVectorImpl<DIEAbbrevData> &Data = Abbrev.getData();
for (unsigned i = 0, N = Data.size(); i < N; ++i) {
const DIEAbbrevData &AttrData = Data[i];

for (const DIEAbbrevData &AttrData : Data) {
// Emit attribute type.
encodeULEB128(AttrData.getAttribute(), AbbrevSection.OS);

Expand Down

0 comments on commit 83845b1

Please sign in to comment.