Skip to content

Commit

Permalink
Do not pass unnecessary parameter to InitializeDebugVarInfos (dotnet#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalStrehovsky authored Aug 27, 2021
1 parent b1ae7b9 commit b637c20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/coreclr/tools/Common/JitInterface/CorInfoImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ private void PublishCode()
_methodCodeNode.InitializeEHInfo(ehInfo);

_methodCodeNode.InitializeDebugLocInfos(_debugLocInfos);
_methodCodeNode.InitializeDebugVarInfos(_debugVarInfos, _compilation.TypeSystemContext.Target);
_methodCodeNode.InitializeDebugVarInfos(_debugVarInfos);
#if READYTORUN
_methodCodeNode.InitializeInliningInfo(_inlinedMethods.ToArray());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,12 +296,12 @@ public void InitializeDebugLocInfos(OffsetMapping[] debugLocInfos)
_debugLocInfos = DebugInfoTableNode.CreateBoundsBlobForMethod(debugLocInfos);
}

public void InitializeDebugVarInfos(NativeVarInfo[] debugVarInfos, TargetDetails target)
public void InitializeDebugVarInfos(NativeVarInfo[] debugVarInfos)
{
Debug.Assert(_debugVarInfos == null);
// Process the debug info from JIT format to R2R format immediately as it is large
// and not used in the rest of the process except to emit.
_debugVarInfos = DebugInfoTableNode.CreateVarBlobForMethod(debugVarInfos, target);
_debugVarInfos = DebugInfoTableNode.CreateVarBlobForMethod(debugVarInfos, _method.Context.Target);
}

public void InitializeDebugEHClauseInfos(DebugEHClauseInfo[] debugEHClauseInfos)
Expand Down

0 comments on commit b637c20

Please sign in to comment.