Browse Source

Fix #2503: Move correct branch in the case of swapped jump-table conditions.

pull/2521/head
Siegfried Pammer 4 years ago
parent
commit
9d99ee86db
  1. 2
      ICSharpCode.Decompiler/IL/ControlFlow/AwaitInFinallyTransform.cs

2
ICSharpCode.Decompiler/IL/ControlFlow/AwaitInFinallyTransform.cs

@ -157,7 +157,7 @@ namespace ICSharpCode.Decompiler.IL.ControlFlow @@ -157,7 +157,7 @@ namespace ICSharpCode.Decompiler.IL.ControlFlow
{
identifierValueTargets.Add(value, otherBranch.TargetBlock);
block.Instructions.RemoveAt(statement.ChildIndex + 1);
statement.ReplaceWith(otherBranch);
statement.ReplaceWith(branchToTarget);
}
else
{

Loading…
Cancel
Save