diff --git a/mlir/include/mlir/Dialect/LLVMIR/LLVMAttrDefs.td b/mlir/include/mlir/Dialect/LLVMIR/LLVMAttrDefs.td --- a/mlir/include/mlir/Dialect/LLVMIR/LLVMAttrDefs.td +++ b/mlir/include/mlir/Dialect/LLVMIR/LLVMAttrDefs.td @@ -340,7 +340,7 @@ let parameters = (ins LLVM_DITagParameter:$tag, OptionalParameter<"StringAttr">:$name, - "DITypeAttr":$baseType, + OptionalParameter<"DITypeAttr">:$baseType, OptionalParameter<"uint64_t">:$sizeInBits, OptionalParameter<"uint32_t">:$alignInBits, OptionalParameter<"uint64_t">:$offsetInBits diff --git a/mlir/test/Dialect/LLVMIR/debuginfo.mlir b/mlir/test/Dialect/LLVMIR/debuginfo.mlir --- a/mlir/test/Dialect/LLVMIR/debuginfo.mlir +++ b/mlir/test/Dialect/LLVMIR/debuginfo.mlir @@ -30,10 +30,10 @@ sizeInBits = 64, alignInBits = 32, offsetInBits = 4 > -// CHECK-DAG: #[[PTR1:.*]] = #llvm.di_derived_type +// CHECK-DAG: #[[PTR1:.*]] = #llvm.di_derived_type #ptr1 = #llvm.di_derived_type< // Specify the name parameter. - tag = DW_TAG_pointer_type, name = "ptr1", baseType = #int0 + tag = DW_TAG_pointer_type, name = "ptr1" > // CHECK-DAG: #[[COMP0:.*]] = #llvm.di_composite_type