Commit Graph

2 Commits

Author SHA1 Message Date
Kavon Farvardin
9bff2b43a6 fix SILGen bug for cross-module actor let accesses
When trying to access a let-bound property of an actor across
a moudule boundary, the operation should be treated as async.
But, upon reaching SILGen, the compiler would crash when trying
to emit the needed hop, because the base of the element reference
was missing. This commit fixes that and adds regression coverage.

resolves rdar://81812013
2021-11-08 14:32:15 -08:00
Doug Gregor
c2b1ceec6e References to actor-isolated lets across modules can be cross-actor.
Implement the remainder of the amendment to SE-0306 "Actors" that
considers any reference to an actor-isolated `let` from within a
different module like a (mutable) property reference. If such
references are from outside the actor, it will be a cross-actor
reference at will be implicitly `async`.
2021-06-26 22:21:32 -07:00