We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cbd6dc commit 7dca372Copy full SHA for 7dca372
src/BenchmarkDotNet/Disassemblers/SourceCodeProvider.cs
@@ -22,7 +22,7 @@ public void Dispose()
22
internal IEnumerable<Sharp> GetSource(ClrMethod method, ILToNativeMap map)
23
{
24
var sourceLocation = GetSourceLocation(method, map.ILOffset);
25
- if (sourceLocation == null)
+ if (sourceLocation is not { LineNumber: > 0 })
26
yield break;
27
28
for (int line = sourceLocation.LineNumber; line <= sourceLocation.LineNumberEnd; ++line)
0 commit comments