[clang] [CIR] Mark globals as constants (PR #168463)
Bruno Cardoso Lopes via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 18 11:32:29 PST 2025
================
@@ -675,7 +675,9 @@ CIRGenModule::getOrCreateCIRGlobal(StringRef mangledName, mlir::Type ty,
errorNYI(d->getSourceRange(), "OpenMP target global variable");
gv.setAlignmentAttr(getSize(astContext.getDeclAlign(d)));
- assert(!cir::MissingFeatures::opGlobalConstant());
+ // FIXME: This code is overly simple and should be merged with other global
----------------
bcardosolopes wrote:
Keeping the CIR ones as FIXME(cir) or similar is what I find to be most helpful, but it's frustrating when you see a FIXME and you are not sure whether it's cargo cult. I'd be fine with a best effort `FIXME(ogcg)` if folks want to make it a bit more obvious
https://github.com/llvm/llvm-project/pull/168463
More information about the cfe-commits
mailing list