Browse Source

use ILInstruction.StartILOffset instead of ILRanges.First().Start

Co-Authored-By: Daniel Grunwald <daniel@danielgrunwald.de>
pull/1920/head
Siegfried Pammer 5 years ago committed by GitHub
parent
commit
24810cb2e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ICSharpCode.Decompiler/CSharp/SequencePointBuilder.cs

2
ICSharpCode.Decompiler/CSharp/SequencePointBuilder.cs

@ -118,7 +118,7 @@ namespace ICSharpCode.Decompiler.CSharp @@ -118,7 +118,7 @@ namespace ICSharpCode.Decompiler.CSharp
// if this block container is part of a TryCatchHandler, do not steal the exception-specifier IL range
intervalStart = handler.ExceptionSpecifierILRange.End;
} else {
intervalStart = blockContainer.ILRanges.First().Start;
intervalStart = blockContainer.StartILOffset;
}
// The end will be set to the first sequence point candidate location before the first statement of the function when the seqeunce point is adjusted
int intervalEnd = intervalStart + 1;

Loading…
Cancel
Save