Check for errors when invoking AMD DXBC disassembler

This commit is contained in:
baldurk committed 2018-02-20 16:02:18 +00:00
1 parent 477d5b6557
commit 207b24854e
1 file changed
+3
@@ -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;