diff options
author | Jb Evain <jb@evain.net> | 2016-08-30 22:56:11 +0300 |
---|---|---|
committer | Jb Evain <jb@evain.net> | 2016-08-30 22:56:19 +0300 |
commit | 505b07d6974d8405a63124139733c6fdc0e67bc7 (patch) | |
tree | 1b3fa03f70b4d4f8036a3387316b17a1b961b709 /Mono.Cecil.Cil/CodeReader.cs | |
parent | 8e65ef5f5259ad590127f281dbe8cd378f8ca801 (diff) |
Remove associated sequence points when removing instructions
Diffstat (limited to 'Mono.Cecil.Cil/CodeReader.cs')
-rw-r--r-- | Mono.Cecil.Cil/CodeReader.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mono.Cecil.Cil/CodeReader.cs b/Mono.Cecil.Cil/CodeReader.cs index 334a296..d5ca98b 100644 --- a/Mono.Cecil.Cil/CodeReader.cs +++ b/Mono.Cecil.Cil/CodeReader.cs @@ -212,7 +212,7 @@ namespace Mono.Cecil.Cil { code_size = 0; var end = start + code_size; - var instructions = body.instructions = new InstructionCollection ((code_size + 1) / 2); + var instructions = body.instructions = new InstructionCollection (method, (code_size + 1) / 2); while (Position < end) { var offset = Position - start; |