Skip to content
Open
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
2 changes: 1 addition & 1 deletion src/coreclr/jit/flowgraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ GenTreeCall* Compiler::fgGetStaticsCCtorHelper(CORINFO_CLASS_HANDLE cls, CorInfo
// across suspensions" behavior for free, while also properly
// ensuring derived addresses are byref typed and are treated
// similarly.
type = compIsAsync() ? TYP_BYREF : TYP_I_IMPL;
type = impInlineRoot()->compIsAsync() ? TYP_BYREF : TYP_I_IMPL;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to do this inside compIsAsync; I do this sort of thing elsewhere in the JIT, for things like this that might be called in early phases.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Often we don't actually want this to be true inside the inlinee unless the inlinee is itself async. But this case is an exception.

break;

case CORINFO_HELP_INITCLASS:
Expand Down
Loading