Skip to content

Conversation

etcwilde
Copy link
Member

@etcwilde etcwilde commented Feb 3, 2022

Allow the hop_to_executor instruction to accept a non-optional executor without crashing in the lowering process.
IRGen still expects an optional executor, so to "lower" the executor, we construct an optional around it.

LowerHopToActor expected either an optional executor or an actor, and
would crash when given a non-optional executor. This patch adds the
wrapping to produce an optional executor from a non-optional executor in
the pass to avoid crashing.
Adding test to crash SIL optimizer while lowering hops to executors.
@etcwilde etcwilde added the concurrency Feature: umbrella label for concurrency language features label Feb 3, 2022
@etcwilde etcwilde requested a review from rjmccall February 3, 2022 22:41
@etcwilde
Copy link
Member Author

etcwilde commented Feb 3, 2022

@swift-ci please test

Copy link
Contributor

@rjmccall rjmccall left a comment

Choose a reason for hiding this comment

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

LGTM

@etcwilde etcwilde merged commit bea6c50 into swiftlang:main Feb 4, 2022
@etcwilde etcwilde deleted the ewilde/lower-executors branch February 4, 2022 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
concurrency Feature: umbrella label for concurrency language features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants