Browse Source

Fix build.

pull/1167/head
Siegfried Pammer 7 years ago
parent
commit
dfa99a8c1f
  1. 2
      ICSharpCode.Decompiler/IL/Transforms/SwitchOnStringTransform.cs

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

@ -290,7 +290,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms @@ -290,7 +290,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms
// switch contains case null:
if (currentCaseBlock != defaultOrNullBlock) {
values.Add((null, defaultOrNullBlock));
values.Add((null, new Branch(defaultOrNullBlock)));
}
var sections = new List<SwitchSection>(values.SelectWithIndex((index, b) => new SwitchSection { Labels = new LongSet(index), Body = b.Item2 }));

Loading…
Cancel
Save