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
5 changes: 4 additions & 1 deletion src/coreclr/interpreter/compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3551,6 +3551,10 @@ void InterpCompiler::EmitCall(CORINFO_RESOLVED_TOKEN* pConstrainedToken, bool re
}
else
{
// Tail call target needs to be IL
if (tailcall && isPInvoke && !isMarshaledPInvoke)
tailcall = false;

// Normal call
InterpOpcode opcode;
if (isDelegateInvoke)
Expand All @@ -3560,7 +3564,6 @@ void InterpCompiler::EmitCall(CORINFO_RESOLVED_TOKEN* pConstrainedToken, bool re
}
else if (tailcall)
{
assert(!isPInvoke && !isMarshaledPInvoke);
opcode = INTOP_CALL_TAIL;
}
else
Expand Down
Loading