mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-27 01:19:31 -05:00
22aa6b67b4
Replace use of raw pointers and explicit reference counting with `std::shared_ptr<>`. Use a discriminated union to store either the bottom level or a call/file context in each heap-allocated entry. This avoids storing a copy of the bottom in every `cmListFileBacktrace` instance and shrinks the structure to a single `shared_ptr`.
14 KiB
14 KiB