pizzud wrote: Extracted the shared_ptr parts to https://github.com/llvm/llvm-project/pull/67467. I'll continue the unique_ptr portion here and respond to those comments later today. https://github.com/llvm/llvm-project/pull/66139