Skip to content

[SILGen] Fix swift repl to not crash on async code.#89359

Merged
al45tair merged 1 commit into
swiftlang:release/6.3from
al45tair:eng/PR-177393479-6.3
Jun 4, 2026
Merged

[SILGen] Fix swift repl to not crash on async code.#89359
al45tair merged 1 commit into
swiftlang:release/6.3from
al45tair:eng/PR-177393479-6.3

Conversation

@al45tair

Copy link
Copy Markdown
Contributor

swift repl crashes when someone attempts to use async code because it fails to find the main module (there isn't one), then it tries to call getMainTypeDecl() on the non-existent main module.

rdar://177393479

`swift repl` crashes when someone attempts to use async code
because it fails to find the main module (there isn't one), then
it tries to call `getMainTypeDecl()` on the non-existent main
module.

rdar://177393479
@al45tair al45tair requested a review from a team as a code owner May 22, 2026 15:17
@al45tair al45tair added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.3 labels May 22, 2026
@al45tair

Copy link
Copy Markdown
Contributor Author

@swift-ci Please test

@al45tair

Copy link
Copy Markdown
Contributor Author

Explanation: In the repl, there isn't a main module configured, so the code that tries to set up Swift Concurrency crashes while trying to look for the executors to use.
Risk: Low. Only affects swift repl use.
Original PR: #89357
Reviewed by: TBC
Resolves: rdar://177393479
Tests: We don't have tests for the repl in the main Swift repository. Possibly there should be a test for this in the LLDB repository.

@al45tair

Copy link
Copy Markdown
Contributor Author

@swift-ci Please test Windows platform

@al45tair al45tair merged commit 5f08b37 into swiftlang:release/6.3 Jun 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🍒 release cherry pick Flag: Release branch cherry picks swift 6.3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants