Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/coreclr/interpreter/compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4946,8 +4946,18 @@ void InterpCompiler::EmitCall(CORINFO_RESOLVED_TOKEN* pConstrainedToken, bool re
m_pStackPointer--;
int32_t continuationArg = m_pStackPointer[0].var;

AddIns(INTOP_LDNULL);
m_pLastNewIns->SetDVar(continuationArg);
if (m_nextCallAsyncContinuationVar == -1)
{
AddIns(INTOP_LDNULL);
m_pLastNewIns->SetDVar(continuationArg);
}
else
{
AddIns(INTOP_MOV_P);
m_pLastNewIns->SetSVar(m_nextCallAsyncContinuationVar);
m_pLastNewIns->SetDVar(continuationArg);
m_nextCallAsyncContinuationVar = -1;
}
callArgs[continuationArgLocation] = continuationArg;
}

Expand Down