serge-sans-paille wrote: Correct me if I'm wrong but if the two objects own a buffer, then the swap will just swap the buffers and the moved object is left on a valid but non empty state, right? https://github.com/llvm/llvm-project/pull/180484