Check for errors when invoking AMD DXBC disassembler

This commit is contained in:
baldurk
2018-01-31 21:03:10 +00:00
parent 477d5b6557
commit 207b24854e
@@ -120,6 +120,9 @@ std::string GCNISA::Disassemble(const DXBC::DXBCFile *dxbc, const std::string &t
compileShader(&in, &out);
if(out.pShaderBinary == NULL || out.shaderBinarySize < 16)
return "; Failed to disassemble shader";
const uint8_t *elf = (const uint8_t *)out.pShaderBinary;
const Elf32_Ehdr *elfHeader = (const Elf32_Ehdr *)elf;