================
@@ -18806,7 +18806,7 @@ void Sema::SetDeclDefaulted(Decl *Dcl, SourceLocation
DefaultLoc) {
// Only allocate DefaultedOrDeletedFunctionInfo if we actually have
// non-default FP features to stash. This avoids memory overhead for
// the vast majority of defaulted functions.
- if (!FD->getDefaultedOrDeletedInfo() &&
+ if (!FD->isInvalidDecl() && !FD->getDefaultedOrDeletedInfo() &&
----------------
ojhunt wrote:
ditto
https://github.com/llvm/llvm-project/pull/210668
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits