================
@@ -7186,9 +7301,10 @@ static bool HandleConstructorCall(const Expr *E, const
LValue &This,
bool Success = true;
unsigned BasesSeen = 0;
-#ifndef NDEBUG
- CXXRecordDecl::base_class_const_iterator BaseIt = RD->bases_begin();
-#endif
+ unsigned VirtualBasesSeen = 0;
+ unsigned NonVirtualBases =
+ llvm::count_if(RD->bases(), [](auto &B) { return !B.isVirtual(); });
----------------
yronglin wrote:
Same as above
https://github.com/llvm/llvm-project/pull/204289
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits