[llvm] [Support][JSON] Fix ObjectKey ownership and Value assignment bugs (PR #214104)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 10 01:50:40 PDT 2026


https://github.com/jh7370 commented:

Mostly looks fine. I'm not a language lawyer, so I'm not up-to-speed on whether there's any nuance to the difference between passing by value in the assignment operators versus having separate copy/move versions (beyond the obvious difference of an implicit copy happening). However, I'm satisfied enough that it's unlikely there's anything we need to care about (especially since we need to do the copy regardless, to maintain the nested value lifetime).

https://github.com/llvm/llvm-project/pull/214104


More information about the llvm-commits mailing list