Ignore uselist block in DXIL container

This commit is contained in:
baldurk
2020-11-09 16:29:39 +00:00
parent e3e3d2747e
commit d5a51dd145
@@ -67,6 +67,7 @@ enum class KnownBlocks : uint32_t
METADATA_BLOCK = 15,
METADATA_ATTACHMENT = 16,
TYPE_BLOCK = 17,
USELIST_BLOCK = 18,
};
enum class ModuleRecord : uint32_t
@@ -1347,6 +1348,10 @@ Program::Program(const byte *bytes, size_t length)
f.instructions[(size_t)meta.ops[0]].attachedMeta.swap(attach);
}
}
else if(IS_KNOWN(funcChild.id, KnownBlocks::USELIST_BLOCK))
{
RDCDEBUG("Ignoring uselist block");
}
else
{
RDCERR("Unexpected subblock %u in FUNCTION_BLOCK", funcChild.id);