================
@@ -664,11 +664,17 @@ void CIRGenModule::setCommonAttributes(GlobalDecl gd,
mlir::Operation *gv) {
void CIRGenModule::setNonAliasAttributes(GlobalDecl gd, mlir::Operation *op) {
setCommonAttributes(gd, op);
+ const Decl *d = gd.getDecl();
+ if (d) {
+ if (auto globalOp = mlir::dyn_cast<cir::GlobalOp>(op)) {
----------------
skc7 wrote:
Updated CIRGlobalValueInterface for section get/set in new patch. Thanks for
feedback.
https://github.com/llvm/llvm-project/pull/188200
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits