Browse Source

Slight pattern changes in mcs 5 switch-on-string with case null.

pull/2546/head
Siegfried Pammer 4 years ago
parent
commit
35aea3eea7
  1. 2
      ICSharpCode.Decompiler/IL/Transforms/SwitchOnStringTransform.cs

2
ICSharpCode.Decompiler/IL/Transforms/SwitchOnStringTransform.cs

@ -715,8 +715,6 @@ namespace ICSharpCode.Decompiler.IL.Transforms @@ -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;

Loading…
Cancel
Save