================
@@ -1900,19 +1900,25 @@ class CodeGenFunction : public CodeGenTypeCache {
CXXDefaultInitExprScope(CodeGenFunction &CGF, const CXXDefaultInitExpr *E)
: CGF(CGF), OldCXXThisValue(CGF.CXXThisValue),
OldCXXThisAlignment(CGF.CXXThisAlignment),
+ OldCXXThisTypeOverride(CGF.CXXThisTypeOverride),
SourceLocScope(E, CGF.CurSourceLocExprScope) {
CGF.CXXThisValue = CGF.CXXDefaultInitExprThis.getBasePointer();
CGF.CXXThisAlignment = CGF.CXXDefaultInitExprThis.getAlignment();
+ // [expr.prim.general]p4: 'this' is "pointer to X" in X's initializers.
----------------
akash-manna-sky wrote:
It did apply to all three lines. Moot now: the CodeGen override is gone, the
type comes from the `BlockDecl`.
https://github.com/llvm/llvm-project/pull/243509
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits