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
Call newInst = new Call(call.Method.Specialize(inst.Method.Substitution)); Call newInst = new Call(call.Method.Specialize(inst.Method.Substitution));
// copy flags // copy flags
newInst.ConstrainedTo = call.ConstrainedTo; newInst.ConstrainedTo = call.ConstrainedTo;
newInst.ILStackWasEmpty = call.ILStackWasEmpty; newInst.ILStackWasEmpty = inst.ILStackWasEmpty;
newInst.IsTail = call.IsTail; newInst.IsTail = call.IsTail & inst.IsTail;
// copy IL ranges // copy IL ranges
newInst.AddILRange(call); newInst.AddILRange(inst);
newInst.Arguments.ReplaceList(inst.Arguments); newInst.Arguments.ReplaceList(inst.Arguments);
inst.ReplaceWith(newInst); inst.ReplaceWith(newInst);
} }

Loading…
Cancel
Save