[clang] [CIR] Upstream global initialization for ArrayType (PR #131657)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 19 10:27:01 PDT 2025
================
@@ -228,6 +257,42 @@ mlir::Value CIRAttrToValue::visitCirAttr(cir::FPAttr fltAttr) {
loc, converter->convertType(fltAttr.getType()), fltAttr.getValue());
}
+// ConstArrayAttr visitor
+mlir::Value CIRAttrToValue::visitCirAttr(cir::ConstArrayAttr attr) {
+ auto llvmTy = converter->convertType(attr.getType());
----------------
andykaylor wrote:
Don't use `auto` here. The same applies for `loc` and `arrayTy` below.
https://github.com/llvm/llvm-project/pull/131657
More information about the cfe-commits
mailing list