================
@@ -1854,6 +1855,9 @@ bool Sema::CheckConstexprFunctionDefinition(const 
FunctionDecl *NewFD,
     }
   }
 
+  if (Context.getTargetInfo().getTriple().isAArch64())
+    ARM().CheckSMEFunctionDefAttributes(NewFD);
+
----------------
cor3ntin wrote:

This seems like a weird place to do that (afaict this has nothing to do with 
constexpr) and I am not sure this code is tested. I suspect 
`ActOnStartOfLambdaDefinition` - after the `ProcessDeclAttributes` call might 
be a better place 

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

Reply via email to