Browse Source

Fix flags+ILRange in ProxyCallReplacer.

pull/1686/head
Daniel Grunwald 6 years ago
parent
commit
251f8c5a84
  1. 6
      ICSharpCode.Decompiler/IL/Transforms/ProxyCallReplacer.cs

6
ICSharpCode.Decompiler/IL/Transforms/ProxyCallReplacer.cs

@ -84,10 +84,10 @@ namespace ICSharpCode.Decompiler.IL.Transforms @@ -84,10 +84,10 @@ namespace ICSharpCode.Decompiler.IL.Transforms
Call newInst = new Call(call.Method.Specialize(inst.Method.Substitution));
// copy flags
newInst.ConstrainedTo = call.ConstrainedTo;
newInst.ILStackWasEmpty = call.ILStackWasEmpty;
newInst.IsTail = call.IsTail;
newInst.ILStackWasEmpty = inst.ILStackWasEmpty;
newInst.IsTail = call.IsTail & inst.IsTail;
// copy IL ranges
newInst.AddILRange(call);
newInst.AddILRange(inst);
newInst.Arguments.ReplaceList(inst.Arguments);
inst.ReplaceWith(newInst);
}

Loading…
Cancel
Save