[PATCH] D41976: Low-hanging fruit optimization in string::__move_assign().
Timothy VanSlyke via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 20 12:42:44 PST 2018
tvanslyke updated this revision to Diff 130775.
tvanslyke added a comment.
Since `__clear_and_shrink()` is private the test covers copy and move assignment. I also ran the libcxx/strings/basic.string and std/strings tests with a hard-coded `assert(__invariants());` at the end of `__clear_and_shrink()` and saw no failures.
I don't have commit access myself so I've added the test to the diff.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3745 bytes
Desc: not available
More information about the cfe-commits