Skip to content

Commit 2cbbdae

Browse files
committed
[flang] Fix build after llvm#93226.
The llvm#93226 adds 4 more fields in DICompositeTypeAttr. This PR provides default value of those 4 fields. This will be required to avoid build error once llvm#93226 is merged.
1 parent 9aa56db commit 2cbbdae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flang/lib/Optimizer/Transforms/DebugTypeGenerator.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ mlir::LLVM::DITypeAttr DebugTypeGenerator::convertSequenceType(
7373
context, llvm::dwarf::DW_TAG_array_type, /*recursive id*/ {},
7474
/* name */ nullptr, /* file */ nullptr, /* line */ 0, /* scope */ nullptr,
7575
elemTy, mlir::LLVM::DIFlags::Zero, /* sizeInBits */ 0,
76-
/*alignInBits*/ 0, elements);
76+
/*alignInBits*/ 0, elements, /* dataLocation */ nullptr,
77+
/* rank */ nullptr, /* allocated */ nullptr,
78+
/* associated */ nullptr);
7779
}
7880

7981
mlir::LLVM::DITypeAttr

0 commit comments

Comments
 (0)