================
@@ -12222,8 +12222,17 @@ bool Sema::CheckFunctionDeclaration(Scope *S, 
FunctionDecl *NewFD,
             << NewFD;
     }
 
-    if (!Redeclaration && LangOpts.CUDA)
+    if (!Redeclaration && LangOpts.CUDA) {
----------------
akshayrdeodhar wrote:
This makes sense. Perhaps a warning? But even that might not be necessary- 
anyone who is using `__grid_constant__` knows what they are using it for. 

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

Reply via email to