clang caught some self-assignments