mirror of
https://github.com/apple/swift.git
synced 2026-03-04 18:24:35 +01:00
Ensure that any object lifetime that will be shortened ends in destroy_value [poison], indicating that the reference should not be dereferenced (e.g. by the debugger) beyond this point. This has no way of knowing whether the object will actually be deallocated at this point. It conservatively avoids showing garbage to debuggers. Part 1/2: rdar://75012368 (-Onone compiler support for early object deinitialization with sentinel dead references)
5.6 KiB
5.6 KiB