[libcxx-commits] [libcxx] 67794e7 - [libc++][nfc] Fixes ppc64le-sanitizer build issue.
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Sep 1 23:14:16 PDT 2021
Author: Mark de Wever
Date: 2021-09-02T08:13:59+02:00
New Revision: 67794e784e1da5ef74d6310f847a2ec41a79d9ff
URL: https://github.com/llvm/llvm-project/commit/67794e784e1da5ef74d6310f847a2ec41a79d9ff
DIFF: https://github.com/llvm/llvm-project/commit/67794e784e1da5ef74d6310f847a2ec41a79d9ff.diff
LOG: [libc++][nfc] Fixes ppc64le-sanitizer build issue.
After landing D103357 the worker ppc64le-sanitizer fails on `__bool`.
This replaces all occurrences with `__boolean`.
Added:
Modified:
libcxx/include/__format/format_arg.h
Removed:
################################################################################
diff --git a/libcxx/include/__format/format_arg.h b/libcxx/include/__format/format_arg.h
index dd8ef48ade1d5..35b48c023827e 100644
--- a/libcxx/include/__format/format_arg.h
+++ b/libcxx/include/__format/format_arg.h
@@ -40,7 +40,7 @@ namespace __format {
/** The type stored in @ref basic_format_arg. */
enum class _LIBCPP_ENUM_VIS __arg_t : uint8_t {
__none,
- __bool,
+ __boolean,
__char_type,
__int,
__long_long,
@@ -67,8 +67,8 @@ visit_format_arg(_Visitor&& __vis, basic_format_arg<_Context> __arg) {
switch (__arg.__type_) {
case __format::__arg_t::__none:
return _VSTD::invoke(_VSTD::forward<_Visitor>(__vis), monostate{});
- case __format::__arg_t::__bool:
- return _VSTD::invoke(_VSTD::forward<_Visitor>(__vis), __arg.__bool);
+ case __format::__arg_t::__boolean:
+ return _VSTD::invoke(_VSTD::forward<_Visitor>(__vis), __arg.__boolean);
case __format::__arg_t::__char_type:
return _VSTD::invoke(_VSTD::forward<_Visitor>(__vis), __arg.__char_type);
case __format::__arg_t::__int:
@@ -142,7 +142,7 @@ class _LIBCPP_TEMPLATE_VIS _LIBCPP_AVAILABILITY_FORMAT basic_format_arg {
_VSTD::visit_format_arg(_Visitor&& __vis, basic_format_arg<_Ctx> __arg);
union {
- bool __bool;
+ bool __boolean;
char_type __char_type;
int __int;
unsigned __unsigned;
@@ -163,7 +163,7 @@ class _LIBCPP_TEMPLATE_VIS _LIBCPP_AVAILABILITY_FORMAT basic_format_arg {
__format::__arg_t __type_;
_LIBCPP_HIDE_FROM_ABI explicit basic_format_arg(bool __v) noexcept
- : __bool(__v), __type_(__format::__arg_t::__bool) {}
+ : __boolean(__v), __type_(__format::__arg_t::__boolean) {}
template <class _Tp>
_LIBCPP_HIDE_FROM_ABI explicit basic_format_arg(_Tp __v) noexcept
More information about the libcxx-commits
mailing list