================
@@ -21707,6 +21707,12 @@ bool Expr::EvaluateAsInitializer(const ASTContext
&Ctx, const VarDecl *VD,
bool VarDecl::evaluateDestruction(
SmallVectorImpl<PartialDiagnosticAt> &Notes) const {
+
+ if (getType()->isPointerOrReferenceType()) {
+ ensureEvaluatedStmt()->HasConstantDestruction = true;
+ return true;
+ }
+
----------------
cor3ntin wrote:
can we short circuit for anything that is not a class type?
https://github.com/llvm/llvm-project/pull/205476
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits