From 3ac2cff442d7a4643621fcbc32ec9dc24931669d Mon Sep 17 00:00:00 2001 From: Farzon Lotfi Date: Mon, 31 Mar 2025 14:04:41 -0400 Subject: [PATCH] [DirectX] Fix build break caused by bitcode writer changes commit: https://github.com/llvm/llvm-project/commit/68947342b75cc71f3ac9041d11db086d8d074336 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 https://github.com/llvm/llvm-project/pull/129596 --- llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp b/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp index ea33ee5759cb7..2a736c91c05c7 100644 --- a/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp +++ b/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp @@ -237,6 +237,11 @@ class DXILBitcodeWriter { SmallVectorImpl &Record, unsigned Abbrev); void writeDIBasicType(const DIBasicType *N, SmallVectorImpl &Record, unsigned Abbrev); + void writeDIFixedPointType(const DIFixedPointType *N, + SmallVectorImpl &Record, + unsigned Abbrev) { + llvm_unreachable("DXIL cannot contain DIFixedPointType Nodes"); + } void writeDIStringType(const DIStringType *N, SmallVectorImpl &Record, unsigned Abbrev) { llvm_unreachable("DXIL cannot contain DIStringType Nodes");