Fix missing else if causing false assert about unhandled OpCode

This commit is contained in:
Jake Turner
2025-02-24 16:36:42 +00:00
parent 88f817f77d
commit f2de54c148
+1 -1
View File
@@ -4938,7 +4938,7 @@ bool ThreadState::ExecuteInstruction(DebugAPIWrapper *apiWrapper,
#define _IMPL(I, S, U) comp<U>(result, c) = (U)x;
IMPL_FOR_INT_TYPES_FOR_TYPE(_IMPL, result.type);
}
if(opCode == Operation::ZExt)
else if(opCode == Operation::ZExt)
{
// Result bit_width >= Value bit_width
RDCASSERT(retType->bitWidth >= srcBitWidth);