[clang] [RFC] Initial implementation of P2719 (PR #113510)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 25 13:39:24 PDT 2025
================
@@ -3849,7 +4119,15 @@ Sema::ActOnCXXDelete(SourceLocation StartLoc, bool UseGlobal,
// delete. This is only necessary if we selected a destroying operator
// delete that we are going to call (non-virtually); converting to void*
// is trivial and left to AST consumers to handle.
- QualType ParamType = OperatorDelete->getParamDecl(0)->getType();
+ unsigned PointeeIndex = 0;
+ if (OperatorDelete->isTypeAwareOperatorNewOrDelete()) {
+ QualType TypeIdentity = OperatorDelete->getParamDecl(0)->getType();
+ if (RequireCompleteType(StartLoc, TypeIdentity,
+ diag::err_incomplete_type))
+ return ExprError();
----------------
cor3ntin wrote:
Maybe. As a follow up?
https://github.com/llvm/llvm-project/pull/113510
More information about the cfe-commits
mailing list