Skip to content

Conversation

@jakobbotsch
Copy link
Member

Cases and successors were swapped in #117423.

Copilot AI review requested due to automatic review settings July 17, 2025 13:00
@github-actions github-actions bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jul 17, 2025
@jakobbotsch jakobbotsch requested review from amanasifkhalid and removed request for Copilot July 17, 2025 13:00
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 corrects the order of the cases and succs parameters when constructing the BBswtDesc in the async transformation, ensuring the unique successor count aligns with the proper argument.

  • Swaps the cases and succs arguments to match the expected constructor signature
  • Adds an inline /* hasDefault */ comment for the boolean parameter
  • Reformats the new BBswtDesc invocation onto two lines
Comments suppressed due to low confidence (1)

src/coreclr/jit/async.cpp:2308

  • [nitpick] For readability, consider formatting the new BBswtDesc invocation with one argument per line and aligned indentation so it's clear which values correspond to each parameter.
        BBswtDesc* const swtDesc = new (m_comp, CMK_BasicBlock)

@dotnet-policy-service
Copy link
Contributor

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

Copy link
Contributor

@amanasifkhalid amanasifkhalid left a comment

Choose a reason for hiding this comment

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

Thanks for catching this

@jakobbotsch
Copy link
Member Author

/ba-g Infra timeouts

@jakobbotsch jakobbotsch merged commit 94b6d05 into dotnet:main Jul 17, 2025
108 of 111 checks passed
@jakobbotsch jakobbotsch deleted the fix-async-switch branch July 17, 2025 17:09
@github-actions github-actions bot locked and limited conversation to collaborators Aug 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants