llvm-project
840a0abb - [libc] Use CheckedPtr in environ_internal (#241777)

Commit
7 days ago
[libc] Use CheckedPtr in environ_internal (#241777) Replace the manual AllocChecker allocations with make_unique and friends. The allocations are only held in CheckedPtrs locally, and released into the raw member pointers once nothing can fail anymore. I'm deliberately not making the members themselves unique_ptrs, as that would make the EnvironmentManager singleton non-trivially destructible. Assisted-by: Claude
Author
Parents
Loading