================
@@ -6967,6 +6967,11 @@ static void checkAttributesAfterMerging(Sema &S, 
NamedDecl &ND) {
         } else if (isa<CXXConstructorDecl>(MD) || isa<CXXDestructorDecl>(MD)) {
           S.Diag(A->getLocation(), diag::err_lifetimebound_ctor_dtor)
               << isa<CXXDestructorDecl>(MD) << A->getRange();
+        } else if (FD->getReturnType()->isVoidType()) {
----------------
usx95 wrote:

nit: use `MD` instead of `FD` since we are working on a method decl (although 
both are correct).

https://github.com/llvm/llvm-project/pull/114203
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to