[libcxx-commits] [PATCH] D136708: [libcxx] Disable assert when building with newlib
Tom Hughes via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Oct 25 11:50:38 PDT 2022
tomhughes updated this revision to Diff 470585.
tomhughes added a comment.
Updated commit message to include bug number.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136708/new/
https://reviews.llvm.org/D136708
Files:
libcxx/include/__locale
Index: libcxx/include/__locale
===================================================================
--- libcxx/include/__locale
+++ libcxx/include/__locale
@@ -549,8 +549,10 @@
_LIBCPP_INLINE_VISIBILITY ctype_base() {}
+#ifndef _NEWLIB_VERSION
static_assert((__regex_word & ~(space | print | cntrl | upper | lower | alpha | digit | punct | xdigit | blank)) == __regex_word,
"__regex_word can't overlap other bits");
+#endif
};
template <class _CharT> class _LIBCPP_TEMPLATE_VIS ctype;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136708.470585.patch
Type: text/x-patch
Size: 521 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20221025/04c24d87/attachment.bin>
More information about the libcxx-commits
mailing list