diff --git a/ICSharpCode.Decompiler/IL/Transforms/SwitchOnStringTransform.cs b/ICSharpCode.Decompiler/IL/Transforms/SwitchOnStringTransform.cs index 2539a8fe3..cefe2c261 100644 --- a/ICSharpCode.Decompiler/IL/Transforms/SwitchOnStringTransform.cs +++ b/ICSharpCode.Decompiler/IL/Transforms/SwitchOnStringTransform.cs @@ -715,8 +715,6 @@ namespace ICSharpCode.Decompiler.IL.Transforms foreach (var section in sectionsWithoutLabels) { - if (!section.Body.Match(defaultSection.Body).Success) - return false; defaultSection.Labels = defaultSection.Labels.UnionWith(section.Labels); if (section.HasNullLabel) defaultSection.HasNullLabel = true;