Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions src/coreclr/jit/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -3882,6 +3882,10 @@ class Compiler
// Note when inlining, this looks for calls back to the root method.
bool gtIsRecursiveCall(GenTreeCall* call, bool useInlineRoot = true)
{
if (call->gtCallType == CT_INDIRECT)
{
return false;
}
return gtIsRecursiveCall(call->gtCallMethHnd, useInlineRoot);
}

Expand Down
4 changes: 3 additions & 1 deletion src/coreclr/jit/gentree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9776,6 +9776,7 @@ GenTreeCall* Compiler::gtNewCallNode(gtCallTypes callType,
if (callType == CT_INDIRECT)
{
node->gtCallCookie = nullptr;
node->gtCallMethHnd = NO_METHOD_HANDLE;
node->gtControlExpr = (GenTree*)callHnd;
}
Comment thread
AndyAyersMS marked this conversation as resolved.
else
Expand Down Expand Up @@ -11383,7 +11384,8 @@ GenTreeCall* Compiler::gtCloneExprCallHelper(GenTreeCall* tree)
/* Copy the union */
if (tree->gtCallType == CT_INDIRECT)
{
copy->gtCallCookie = tree->gtCallCookie;
copy->gtCallCookie = tree->gtCallCookie;
copy->gtCallMethHnd = NO_METHOD_HANDLE;
}
else
{
Expand Down
Loading