Allow zero target switch instructions

This commit is contained in:
de4dot 2012-02-12 21:18:10 +01:00
parent f7abb70475
commit bf0f136ec9

View File

@ -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;