diff options
-rw-r--r-- | Mono.Cecil.Cil/CodeReader.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Mono.Cecil.Cil/CodeReader.cs b/Mono.Cecil.Cil/CodeReader.cs index 36bb953..17376d4 100644 --- a/Mono.Cecil.Cil/CodeReader.cs +++ b/Mono.Cecil.Cil/CodeReader.cs @@ -160,9 +160,8 @@ namespace Mono.Cecil.Cil { void ReadScope (ScopeDebugInformation scope) { var start_instruction = GetInstruction (scope.Start.Offset); - scope.Start = start_instruction != null - ? new InstructionOffset (start_instruction) - : new InstructionOffset (); + if (start_instruction != null) + scope.Start = new InstructionOffset (start_instruction); var end_instruction = GetInstruction (scope.End.Offset); scope.End = end_instruction != null |