Skip to content

Fix IsAsyncCall definition#121814

Merged
MichalStrehovsky merged 2 commits intodotnet:mainfrom
MichalStrehovsky:isasynccall
Nov 20, 2025
Merged

Fix IsAsyncCall definition#121814
MichalStrehovsky merged 2 commits intodotnet:mainfrom
MichalStrehovsky:isasynccall

Conversation

@MichalStrehovsky
Copy link
Member

@MichalStrehovsky MichalStrehovsky commented Nov 19, 2025

The implementation didn't match the comment.

cc @dotnet/ilc-contrib

The implementation didn't match the comment.
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a logic bug in the IsAsyncCall method where the implementation didn't match its documentation. The method is supposed to return true for two distinct cases: (1) async variants (compiler-generated wrappers), and (2) special async intrinsics that use async calling convention but don't return Task/ValueTask.

Key Changes

  • Reordered the boolean expression to check IsAsyncVariant() first without requiring the IsAsync flag
  • The IsAsync flag is now only required for the second case (async intrinsics that don't return Task/ValueTask)

@MichalStrehovsky
Copy link
Member Author

The failure in the x64 checked legs looks like what #121759 is fixing so we'll need to approve and merge that one first.

@MichalStrehovsky MichalStrehovsky enabled auto-merge (squash) November 20, 2025 17:09
@MichalStrehovsky MichalStrehovsky merged commit 4c32268 into dotnet:main Nov 20, 2025
96 checks passed
@MichalStrehovsky MichalStrehovsky deleted the isasynccall branch November 20, 2025 20:59
MichalStrehovsky added a commit that referenced this pull request Nov 24, 2025
With #121814 merged we should be able to start running these in the CI
for native AOT.
@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants