Allow zero target switch instructions
This commit is contained in:
parent
f7abb70475
commit
bf0f136ec9
|
@ -209,8 +209,6 @@ namespace de4dot.blocks {
|
|||
break;
|
||||
|
||||
case OperandType.InlineSwitch:
|
||||
if (targets.Count == 0)
|
||||
throw new ApplicationException("No targets!");
|
||||
var switchTargets = new Instruction[targets.Count];
|
||||
for (var i = 0; i < targets.Count; i++)
|
||||
switchTargets[i] = targets[i].Instruction;
|
||||
|
|
Loading…
Reference in New Issue
Block a user