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 a1a1ae7 commit 1d31363Copy full SHA for 1d31363
src/coreclr/tools/aot/ILCompiler.RyuJit/JitInterface/CorInfoImpl.Llvm.DebugInfo.cs
@@ -44,8 +44,13 @@ internal sealed unsafe partial class CorInfoImpl
44
private void GetDebugInfoForCurrentMethod(CORINFO_LLVM_METHOD_DEBUG_INFO* pInfo)
45
{
46
*pInfo = default;
47
- MethodDesc method = _methodCodeNode.Method;
+ if (_debugInfo == null)
48
+ {
49
+ // The Jit may call us more than once (e. g. due to internal fallbacks).
50
+ return;
51
+ }
52
53
+ MethodDesc method = _methodCodeNode.Method;
54
string documentPath = null;
55
ArrayBuilder<CORINFO_LLVM_LINE_NUMBER_DEBUG_INFO> lineNumbersBuilder = default;
56
foreach (ILSequencePoint sequencePoint in _debugInfo.GetSequencePoints())
0 commit comments