Commit 9f74282
committed
Redesign LifetimeDependenceScopeFixup to handle accessors.
Handle all combinations of nested dependence scopes: access scopes, coroutines,
and borrow scopes.
This is required to enforce ~Escapable _read accessors and unsafeAddress addressors.
Fixes rdar://140424699 (Invalid SIL is generated by some passes for certain
@Lifetime annotations)1 parent 01279c4 commit 9f74282
File tree
1 file changed
+595
-112
lines changed- SwiftCompilerSources/Sources/Optimizer/FunctionPasses
1 file changed
+595
-112
lines changed
0 commit comments