Browse Source

#1386: Fix fixed-statement detection when fixed statement contains "return" and the method has multiple return statements.

pull/1423/head
Daniel Grunwald 7 years ago
parent
commit
f9f9d57398
  1. 2
      ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs

2
ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs

@ -85,8 +85,8 @@ namespace ICSharpCode.Decompiler.CSharp @@ -85,8 +85,8 @@ namespace ICSharpCode.Decompiler.CSharp
// so that the return variable is split and can be inlined.
new SplitVariables(),
new ILInlining(),
new InlineReturnTransform(), // must run before DetectPinnedRegions
new DetectPinnedRegions(), // must run after inlining but before non-critical control flow transforms
new InlineReturnTransform(),
new YieldReturnDecompiler(), // must run after inlining but before loop detection
new AsyncAwaitDecompiler(), // must run after inlining but before loop detection
new DetectCatchWhenConditionBlocks(), // must run after inlining but before loop detection

Loading…
Cancel
Save