[libcxx-commits] [libcxx] [FIX] Fix the function isctype failed in arm64-big-endian (PR #73200)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Nov 27 11:58:05 PST 2023


================
@@ -384,7 +384,7 @@ public:
     static const mask punct  = _ISpunct;
     static const mask xdigit = _ISxdigit;
     static const mask blank  = _ISblank;
-#if defined(__mips__)
+#if defined(__mips__) || (BYTE_ORDER == BIG_ENDIAN)
----------------
ldionne wrote:

Are you talking about https://github.com/llvm/llvm-project/blob/main/libcxx/src/locale.cpp#L1060 ? I am still failing to see where there's anything that depends on endianness here.

https://github.com/llvm/llvm-project/pull/73200


More information about the libcxx-commits mailing list