Browse Source

Fix typo in YieldReturnDecompiler

pull/1274/merge
Siegfried Pammer 7 years ago
parent
commit
fc717be0d8
  1. 2
      ICSharpCode.Decompiler/IL/ControlFlow/YieldReturnDecompiler.cs

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

@ -133,7 +133,7 @@ namespace ICSharpCode.Decompiler.IL.ControlFlow @@ -133,7 +133,7 @@ namespace ICSharpCode.Decompiler.IL.ControlFlow
context.Step("Replacing body with MoveNext() body", function);
function.IsIterator = true;
function.StateMachineCompiledWithMono = true;
function.StateMachineCompiledWithMono = isCompiledWithMono;
function.Body = newBody;
// register any locals used in newBody
function.Variables.AddRange(newBody.Descendants.OfType<IInstructionWithVariableOperand>().Select(inst => inst.Variable).Distinct());

Loading…
Cancel
Save