================
@@ -2566,6 +2566,26 @@ mlir::LogicalResult 
CIRToLLVMGetGlobalOpLowering::matchAndRewrite(
   return mlir::success();
 }
 
+llvm::SmallVector<mlir::NamedAttribute>
+CIRToLLVMGlobalOpLowering::lowerGlobalAttributes(
+    cir::GlobalOp op, mlir::ConversionPatternRewriter &rewriter) const {
+  SmallVector<mlir::NamedAttribute> attributes;
+
+  if (auto sectionAttr = op.getSectionAttr())
----------------
andykaylor wrote:

```suggestion
  if (mlir::StringAttr sectionAttr = op.getSectionAttr())
```

https://github.com/llvm/llvm-project/pull/188200
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to