[clang] [CIR][CUDA] Handle local, __device__, __shared__, and __constant__ variables (PR #184248)
Zaky Hermawan via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 10 17:53:08 PDT 2026
================
@@ -667,8 +672,23 @@ void CIRGenFunction::emitStaticVarDecl(const VarDecl &d,
// There are a lot of attributes that need to be handled here. Until
// we start to support them, we just report an error if there are any.
- if (d.hasAttrs())
- cgm.errorNYI(d.getSourceRange(), "static var with attrs");
+ if (d.hasAttr<AnnotateAttr>())
+ cgm.errorNYI(d.getSourceRange(), "Global annotations are NYI");
----------------
ZakyHermawan wrote:
I'm also applying the same diagnostic messages to another relevant codes.
https://github.com/llvm/llvm-project/pull/184248
More information about the cfe-commits
mailing list