[llvm] [DirectX] Fix build breaks (PR #128556)

Farzon Lotfi via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 24 11:36:32 PST 2025


================
@@ -243,6 +243,10 @@ class DXILBitcodeWriter {
   }
   void writeDIDerivedType(const DIDerivedType *N,
                           SmallVectorImpl<uint64_t> &Record, unsigned Abbrev);
+  void writeDISubrangeType(const DISubrangeType *N,
----------------
farzonl wrote:

No its caused by `HANDLE_SPECIALIZED_MDNODE_LEAF_UNIQUABLE(DISubrangeType)` in `llvm/include/llvm/IR/Metadata.def` line 121. This is because `llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp` uses `Metadata.def` in `DXILBitcodeWriter::writeMetadataRecords`

https://github.com/llvm/llvm-project/pull/128556


More information about the llvm-commits mailing list