This appears to be a bug in our string::assign: when assigning into a longer string, from a shorter snippet of itself, we invalidate iterators before doing the copy. We should invalidate them afterward. Also drive-by improve the formatting of a function header.
Details
Details
- Reviewers
ldionne krisb Mordante - Group Reviewers
Restricted Project - Commits
- rGdb9425cb060b: [libc++] [LIBCXX-DEBUG-FIXME] Fix an iterator-invalidation issue in string…
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
I like this change!