[libc++][NFC] Add assertions before calling memmove
authorLouis Dionne <ldionne.2@gmail.com>
Mon, 28 Nov 2022 13:39:42 +0000 (08:39 -0500)
committerLouis Dionne <ldionne.2@gmail.com>
Mon, 28 Nov 2022 16:10:04 +0000 (11:10 -0500)
commitb95379d20e0493d4ca073fbaa2f878344568425b
treed8e63a16d466cd54c9a7178ceced13b8502e9681
parent9517806064cfb10f72f7f0608e892ed58fd62581
[libc++][NFC] Add assertions before calling memmove

Since we're checking preconditions for calling memmove, we might
as well do that properly.

Differential Revision: https://reviews.llvm.org/D138798
libcxx/include/fstream
libcxx/include/locale