mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The dumper method dumps: 1. The container's metadata pointer. 2. A pointer to the container's value. 3. Whether or not said value is stored inline in the container. This provides a general overview that can be used even when working with SIL code in the debugger by grabbing a pointer to swift Anys and then calling the c++ any method upon them. The verifier is intended to be used in conjunction with ASAN for maximum effect to catch use-after-frees of existential boxes. While implementing this I refactored some code from ExistentialTypeMetadata into methods on OpaqueExistentialContainer. ExistentialTypeMetadata just calls these methods now instead of implementing the code inline.
1.8 KiB
1.8 KiB