Skip to content

Commit 089ba11

Browse files
[Linker] Use a range-based for loop (NFC) (#97656)
1 parent f2c6add commit 089ba11

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Linker/IRMover.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,8 +1489,7 @@ Error IRLinker::linkModuleFlagsMetadata() {
14891489
}
14901490

14911491
// Check all of the requirements.
1492-
for (unsigned I = 0, E = Requirements.size(); I != E; ++I) {
1493-
MDNode *Requirement = Requirements[I];
1492+
for (MDNode *Requirement : Requirements) {
14941493
MDString *Flag = cast<MDString>(Requirement->getOperand(0));
14951494
Metadata *ReqValue = Requirement->getOperand(1);
14961495

0 commit comments

Comments
 (0)