[libcxx] r272886 - Remove CloudABI specific workaround.

Ed Schouten via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 16 04:53:12 PDT 2016


Author: ed
Date: Thu Jun 16 06:53:11 2016
New Revision: 272886

URL: http://llvm.org/viewvc/llvm-project?rev=272886&view=rev
Log:
Remove CloudABI specific workaround.

CloudABI has gained the mblen_l() function in the meantime that does
properly return whether the character set has shift-states (read:
never).

Modified:
    libcxx/trunk/src/locale.cpp

Modified: libcxx/trunk/src/locale.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/locale.cpp?rev=272886&r1=272885&r2=272886&view=diff
==============================================================================
--- libcxx/trunk/src/locale.cpp (original)
+++ libcxx/trunk/src/locale.cpp Thu Jun 16 06:53:11 2016
@@ -1660,10 +1660,8 @@ codecvt<wchar_t, char, mbstate_t>::do_un
 int
 codecvt<wchar_t, char, mbstate_t>::do_encoding() const  _NOEXCEPT
 {
-#ifndef __CloudABI__
     if (__libcpp_mbtowc_l(nullptr, nullptr, MB_LEN_MAX, __l) != 0)
         return -1;
-#endif
 
     // stateless encoding
     if (__l == 0 || __libcpp_mb_cur_max_l(__l) == 1)  // there are no known constant length encodings




More information about the cfe-commits mailing list