From bf0f136ec9b841da9fbbb3dbca6864b943dd98cc Mon Sep 17 00:00:00 2001 From: de4dot Date: Sun, 12 Feb 2012 21:18:10 +0100 Subject: [PATCH] Allow zero target switch instructions --- blocks/Instr.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/blocks/Instr.cs b/blocks/Instr.cs index 8250eb86..23c44bb6 100644 --- a/blocks/Instr.cs +++ b/blocks/Instr.cs @@ -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;