These two methods are essentially assignents, but don't check
for self-assignment and use memcpy for member variables.
Since they aren't actually operator=(), it's unclear what should be done:
- check and shortcut
- assert
- allow but s/memcpy/memmove/
Differential D39578
Fix a couple of self-assignments using memcpy. hintonda on Nov 2 2017, 4:03 PM. Authored by
Details These two methods are essentially assignents, but don't check Since they aren't actually operator=(), it's unclear what should be done:
Diff Detail
Event TimelineComment Actions First change looks good. Second one we can probably avoid doing anything in Value::AppendDataToHostBuffer and return 0. No need to copy data over itself.
|