Skip to content

Commit 4a5708f

Browse files
committed
Fix flang build.
The #92568 introduced call of DICompositeTypeAttr::get in flang. This commit adjusts the call to fix the build. I initially opened the #93516 for it but was advised to add this change in this PR.
1 parent d913fa6 commit 4a5708f

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)