================
@@ -122,19 +124,18 @@ static bool CheckFieldsInitialized(InterpState &S,
SourceLocation Loc,
}
// Check Fields in all bases
- for (const Record::Base &B : R->bases()) {
+ for (auto [I, B] : llvm::enumerate(R->bases())) {
----------------
Sirraide wrote:
I believe `llvm::enumerate` acts like `std::views::enumerate` and iterates by
reference, so you’re supposed to just do `auto [...]`; at least that’s what I
recall from the documentation.
https://github.com/llvm/llvm-project/pull/100761
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits