added jump for zero cases

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40104
This commit is contained in:
David Anderson 2006-10-01 21:06:50 +00:00
parent 47dadb6cd6
commit ea6c73dcb3

View File

@ -1210,6 +1210,8 @@ inline void WriteOp_Switch(JitWriter *jit)
if (!num_cases)
{
/* Special treatment for 0 cases */
//jmp <default>
IA32_Jump_Imm32_Abs(jit, RelocLookup(jit, *tbl, false));
} else {
/* Check if the case layout is fully sequential */
casetbl *iter = (casetbl *)(tbl + 1);