swift
6638dfe8 - [SILGen] Use an address-only deinit `self` in place

Commit
4 days ago
[SILGen] Use an address-only deinit `self` in place SILGen used to move the `self` of a deinit of a noncopyable type into a local alloc_stack, for the move checker. This is actually unnecessary, because an address-only `self` is passed @in, and can be accessed directly. Within Synchronization's _Cell type, this caused an extra copy of the cell's contents to the stack for deinit. In practice, it caused a stack overflow when a Mutex was holding a large value and running on a small thread. Part of fixing rdar://193845235.
Author
Committer
Parents
Loading