[llvm] [LAA] refactor program logic (NFC) (PR #92101)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed May 22 05:33:30 PDT 2024
================
@@ -394,9 +394,9 @@ void RuntimePointerChecking::generateChecks(
bool RuntimePointerChecking::needsChecking(
const RuntimeCheckingPtrGroup &M, const RuntimeCheckingPtrGroup &N) const {
- for (unsigned I = 0, EI = M.Members.size(); EI != I; ++I)
- for (unsigned J = 0, EJ = N.Members.size(); EJ != J; ++J)
- if (needsChecking(M.Members[I], N.Members[J]))
+ for (auto &I : M.Members)
----------------
fhahn wrote:
nit: `const auto &`?
https://github.com/llvm/llvm-project/pull/92101
More information about the llvm-commits
mailing list