mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
withoutActuallyEscaping checks that the passed closure has not beed escaped by ensuring that its reference count is exactly 1 at the end of the code block. So far this was only done in the regular return case. But if the code block throws, the check was not done. Fixes an undetected undefined behavior.
2.1 KiB
2.1 KiB