swift
66780eef - SILGen: Correct ownership forwarding of `Builtin.emplace`.

Commit
1 year ago
SILGen: Correct ownership forwarding of `Builtin.emplace`. Forward the owning cleanup for the temporary buffer (if needed) instead of creating a new cleanup, to avoid a double-free when both the initialization cleanup and the value cleanup execute. Fixes rdar://147961840.
Author
Parents
Loading