[libcxx] Don't truncate intermediates to wchar_t when widening
authorMartin Storsjö <martin@martin.st>
Tue, 27 Oct 2020 11:01:54 +0000 (13:01 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 27 Oct 2020 21:58:27 +0000 (23:58 +0200)
commit70bba9ef3530b4a45fba1aabe413b56d7b54cc9f
treeeaec4b3bf4350f2f32a50f764709cb17cf5db13a
parent5459d08795e370321beb9e50c3b73e9fcd2dd7de
[libcxx] Don't truncate intermediates to wchar_t when widening

On windows, wchar_t is 16 bit, while we might be widening chars to
char32_t.

This cast had been present since the initial commit, and removing it
doesn't seem to make any tests fail.

Differential Revision: https://reviews.llvm.org/D90228
libcxx/include/__locale