diff --git a/mlir/include/mlir/IR/OpBase.td b/mlir/include/mlir/IR/OpBase.td --- a/mlir/include/mlir/IR/OpBase.td +++ b/mlir/include/mlir/IR/OpBase.td @@ -1432,7 +1432,7 @@ let constBuilderCall = "$_builder.getStrArrayAttr($0)"; } def TypeArrayAttr : TypedArrayAttrBase { - let constBuilderCall = ?; + let constBuilderCall = "$_builder.getTypeArrayAttr($0)"; } // Attribute information for an Attribute field within a StructAttr. diff --git a/mlir/test/lib/Dialect/Test/TestOps.td b/mlir/test/lib/Dialect/Test/TestOps.td --- a/mlir/test/lib/Dialect/Test/TestOps.td +++ b/mlir/test/lib/Dialect/Test/TestOps.td @@ -168,6 +168,9 @@ def TypeArrayAttrOp : TEST_Op<"type_array_attr"> { let arguments = (ins TypeArrayAttr:$attr); } +def TypeArrayAttrWithDefaultOp : TEST_Op<"type_array_attr_with_default"> { + let arguments = (ins DefaultValuedAttr:$attr); +} def TypeStringAttrWithTypeOp : TEST_Op<"string_attr_with_type"> { let arguments = (ins TypedStrAttr:$attr); let assemblyFormat = "$attr attr-dict";