Skip to content

Commit

Permalink
[Linker] Use a range-based for loop (NFC) (#98785)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata authored Jul 14, 2024
1 parent 35bb9f1 commit 7c15fba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Linker/IRMover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1192,8 +1192,8 @@ void IRLinker::prepareCompileUnitsForImport() {
// When importing for ThinLTO, prevent importing of types listed on
// the DICompileUnit that we don't need a copy of in the importing
// module. They will be emitted by the originating module.
for (unsigned I = 0, E = SrcCompileUnits->getNumOperands(); I != E; ++I) {
auto *CU = cast<DICompileUnit>(SrcCompileUnits->getOperand(I));
for (MDNode *N : SrcCompileUnits->operands()) {
auto *CU = cast<DICompileUnit>(N);
assert(CU && "Expected valid compile unit");
// Enums, macros, and retained types don't need to be listed on the
// imported DICompileUnit. This means they will only be imported
Expand Down

0 comments on commit 7c15fba

Please sign in to comment.