diff options
Diffstat (limited to 'Mono.Cecil.Cil/MethodBody.cs')
-rw-r--r-- | Mono.Cecil.Cil/MethodBody.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Mono.Cecil.Cil/MethodBody.cs b/Mono.Cecil.Cil/MethodBody.cs index 1526b59..1aecb57 100644 --- a/Mono.Cecil.Cil/MethodBody.cs +++ b/Mono.Cecil.Cil/MethodBody.cs @@ -312,7 +312,7 @@ namespace Mono.Cecil.Cil { if (debug_info == null) return; - // Local scopes store start/end pair of "instruction offsets". Instruction offset can be either resolved, in which case it + // Local scopes store start/end pair of "instruction offsets". Instruction offset can be either resolved, in which case it // has a reference to Instruction, or unresolved in which case it stores numerical offset (instruction offset in the body). // Typically local scopes loaded from PE/PDB files will be resolved, but it's not a requirement. // Each instruction has its own offset, which is populated on load, but never updated (this would be pretty expensive to do). @@ -407,7 +407,7 @@ namespace Mono.Cecil.Cil { // Allow for trailing null values in the case of // instructions.Size < instructions.Capacity if (item == null) - break; + return new InstructionOffset (items [i - 1]); cache.Instruction = item; @@ -424,4 +424,4 @@ namespace Mono.Cecil.Cil { } } } -} +}
\ No newline at end of file |