[llvm] 4c9ffb7 - [Analysis] Use a range-based for loop (NFC) (#139488)
via llvm-commits
llvm-commits at lists.llvm.org
Sun May 11 21:29:10 PDT 2025
Author: Kazu Hirata
Date: 2025-05-11T21:29:07-07:00
New Revision: 4c9ffb7957c92bcbb8290a6f821812ff1c43661e
URL: https://github.com/llvm/llvm-project/commit/4c9ffb7957c92bcbb8290a6f821812ff1c43661e
DIFF: https://github.com/llvm/llvm-project/commit/4c9ffb7957c92bcbb8290a6f821812ff1c43661e.diff
LOG: [Analysis] Use a range-based for loop (NFC) (#139488)
Added:
Modified:
llvm/lib/Analysis/DXILResource.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/DXILResource.cpp b/llvm/lib/Analysis/DXILResource.cpp
index 1602b24e7d9af..baba7d2c75e58 100644
--- a/llvm/lib/Analysis/DXILResource.cpp
+++ b/llvm/lib/Analysis/DXILResource.cpp
@@ -955,9 +955,7 @@ void DXILResourceBindingInfo::populate(Module &M, DXILResourceTypeMap &DRTM) {
// for each binding type and used spaces. Bindings are sorted by resource
// class, space, and lower bound register slot.
BindingSpaces *BS = &SRVSpaces;
- for (unsigned I = 0, E = Bindings.size(); I != E; ++I) {
- Binding &B = Bindings[I];
-
+ for (const Binding &B : Bindings) {
if (BS->RC != B.RC)
// move to the next resource class spaces
BS = &getBindingSpaces(B.RC);
More information about the llvm-commits
mailing list