[clang] [CIR][CUDA] Handle local, __device__, and __shared__ variables (PR #184248)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 4 13:48:49 PST 2026


================
@@ -947,10 +963,6 @@ void CIRGenModule::emitGlobalVarDefinition(const clang::VarDecl *vd,
     errorNYI(vd->getSourceRange(), "annotate global variable");
   }
 
-  if (langOpts.CUDA) {
----------------
andykaylor wrote:

There are things that need to happen here. You can't just remove the diagnostic.

https://github.com/llvm/llvm-project/pull/184248


More information about the cfe-commits mailing list