Skip to content

Commit c1bf5e6

Browse files
authored
[DirectX] Fix build break caused by bitcode writer changes (#133770)
commit: 6894734 added a new `writeDIFixedPointType` function. However, `DIFixedPointType` is not supported in DXIL so we need to add a fail fast case for this to fix the build. this change fixes a build break introduced by #129596
1 parent a415b7f commit c1bf5e6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,11 @@ class DXILBitcodeWriter {
237237
SmallVectorImpl<uint64_t> &Record, unsigned Abbrev);
238238
void writeDIBasicType(const DIBasicType *N, SmallVectorImpl<uint64_t> &Record,
239239
unsigned Abbrev);
240+
void writeDIFixedPointType(const DIFixedPointType *N,
241+
SmallVectorImpl<uint64_t> &Record,
242+
unsigned Abbrev) {
243+
llvm_unreachable("DXIL cannot contain DIFixedPointType Nodes");
244+
}
240245
void writeDIStringType(const DIStringType *N,
241246
SmallVectorImpl<uint64_t> &Record, unsigned Abbrev) {
242247
llvm_unreachable("DXIL cannot contain DIStringType Nodes");

0 commit comments

Comments
 (0)