Skip to content

Commit 4c9ffb7

Browse files
[Analysis] Use a range-based for loop (NFC) (llvm#139488)
1 parent 1ecba5b commit 4c9ffb7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Analysis/DXILResource.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -955,9 +955,7 @@ void DXILResourceBindingInfo::populate(Module &M, DXILResourceTypeMap &DRTM) {
955955
// for each binding type and used spaces. Bindings are sorted by resource
956956
// class, space, and lower bound register slot.
957957
BindingSpaces *BS = &SRVSpaces;
958-
for (unsigned I = 0, E = Bindings.size(); I != E; ++I) {
959-
Binding &B = Bindings[I];
960-
958+
for (const Binding &B : Bindings) {
961959
if (BS->RC != B.RC)
962960
// move to the next resource class spaces
963961
BS = &getBindingSpaces(B.RC);

0 commit comments

Comments
 (0)