diff --git a/ICSharpCode.Decompiler/IL/Transforms/CopyPropagation.cs b/ICSharpCode.Decompiler/IL/Transforms/CopyPropagation.cs index 10435130b..7b45ba662 100644 --- a/ICSharpCode.Decompiler/IL/Transforms/CopyPropagation.cs +++ b/ICSharpCode.Decompiler/IL/Transforms/CopyPropagation.cs @@ -165,6 +165,8 @@ namespace ICSharpCode.Decompiler.IL.Transforms { clone.Children[j].ReplaceWith(new LdLoc(uninlinedArgs[j])); } + // We are copying an expression from far away, reusing the ILRange would result in incorrect sequence points. + clone.SetILRange(new Interval()); expr.ReplaceWith(clone); } block.Instructions.RemoveAt(i);