[clang] [Clang][Interp] Fix the location of uninitialized base warning (PR #100761)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 30 08:04:38 PDT 2024
================
@@ -122,19 +123,22 @@ static bool CheckFieldsInitialized(InterpState &S, SourceLocation Loc,
}
// Check Fields in all bases
- for (const Record::Base &B : R->bases()) {
+ for (unsigned I = 0, E = R->getNumBases(); I != E; ++I) {
+ const auto &B = *R->getBase(I);
----------------
yronglin wrote:
Thanks, it's make sense.
https://github.com/llvm/llvm-project/pull/100761
More information about the cfe-commits
mailing list