mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-10 22:31:32 +00:00
Fix off-by-one in assert, allow Switch as first thing in function
This commit is contained in:
1 parent
df00fc95e7
commit
84dcd7b9ad
1 file changed
+1
-1
@@ -2275,7 +2275,7 @@ string SPVModule::Disassemble(const string &entryPoint)
|
||||
{
|
||||
if(funcops[l]->opcode == spv::OpSwitch)
|
||||
{
|
||||
RDCASSERT(l > 1 && funcops[l-1]->opcode == spv::OpSelectionMerge);
|
||||
RDCASSERT(l > 0 && funcops[l-1]->opcode == spv::OpSelectionMerge);
|
||||
switchstack.push_back(std::make_pair(funcops[l-1]->flow->targets[0], funcops[l]->flow));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user