[clang] [analyzer][NFC] Modernize loops in LiveVariables analysis (PR #157670)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 9 06:49:27 PDT 2025
================
@@ -90,8 +90,8 @@ namespace {
if (A.isEmpty())
return B;
- for (typename SET::iterator it = B.begin(), ei = B.end(); it != ei; ++it) {
- A = A.add(*it);
+ for (const auto &element : B) {
----------------
Xazax-hun wrote:
We have pointers in these sets. Maybe iterating by value would be better to avoid double indirection?
https://github.com/llvm/llvm-project/pull/157670
More information about the cfe-commits
mailing list