[clang] [llvm] [DirectX] Removing dxbc DescriptorRange from mcbxdc (PR #154629)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 8 12:54:19 PDT 2025


================
@@ -137,7 +137,8 @@ void RootSignatureDesc::write(raw_ostream &OS) const {
                              llvm::endianness::little);
       rewriteOffsetToCurrentByte(BOS, writePlaceholder(BOS));
       for (const auto &Range : Table) {
-        support::endian::write(BOS, Range.RangeType, llvm::endianness::little);
+        support::endian::write(BOS, static_cast<uint32_t>(Range.RangeType),
----------------
joaosaffran wrote:

`dxil::ResourceClasses` are uint8_t by default, so changing its type or casting is required. I opted to cast, since that seems to be the less disruptive option.

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


More information about the llvm-commits mailing list