diff --git a/renderdoc/driver/shaders/dxil/dxil_disassemble.cpp b/renderdoc/driver/shaders/dxil/dxil_disassemble.cpp index 087080e8f3..e731da7f4c 100644 --- a/renderdoc/driver/shaders/dxil/dxil_disassemble.cpp +++ b/renderdoc/driver/shaders/dxil/dxil_disassemble.cpp @@ -163,6 +163,8 @@ DXILDebug::Id DXIL::GetSSAId(const DXIL::Value *value) return inst->slot; if(const GlobalVar *gv = cast(value)) return gv->ssaId; + if(const Constant *c = cast(value)) + return DXILDebug::INVALID_ID; RDCERR("Unhandled DXIL::Value type"); return DXILDebug::INVALID_ID;