[clang] [clang][ExprConst] Support virtual bases in C++26 (PR #204289)
Yihan Wang via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 14 06:33:27 PDT 2026
================
@@ -7268,9 +7389,10 @@ static bool HandleConstructorCall(const Expr *E, const LValue &This,
// This is the point at which the dynamic type of the object becomes this
// class type.
- if (I->isBaseInitializer() && BasesSeen == RD->getNumBases())
+ if (I->isBaseInitializer() && BasesSeen == NonVirtualBases)
EvalObj.finishedConstructingBases();
- }
+
+ } // END OF FOR LOOP
----------------
yronglin wrote:
We don't need this, right?
```suggestion
}
```
https://github.com/llvm/llvm-project/pull/204289
More information about the cfe-commits
mailing list