================
@@ -1098,7 +1098,9 @@ static bool DiagnoseTypeAwareAllocators(Sema &S,
SourceLocation Loc,
S.LookupQualifiedName(R, PromiseType->getAsCXXRecordDecl());
bool HaveIssuedWarning = false;
for (auto Decl : R) {
- if (!Decl->getAsFunction()->isTypeAwareOperatorNewOrDelete())
+ if (!Decl->getUnderlyingDecl()
+ ->getAsFunction()
+ ->isTypeAwareOperatorNewOrDelete())
----------------
ojhunt wrote:
Doh!
https://github.com/llvm/llvm-project/pull/179141
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits