From 06ee65af9ed6aa5ee4d1d7f4fab9d7acecf66e76 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 26 Apr 2024 15:33:29 -0700 Subject: libcxx: update to LLVM 18 release/18.x branch, commit 78b99c73ee4b96fe9ce0e294d4632326afb2db42 This adds the flag `-D_LIBCPP_HARDENING_MODE` which is determined based on the Zig optimization mode. This commit also fixes libunwind, libcxx, and libcxxabi to properly report sub compilation errors. --- lib/libcxx/include/__system_error/error_condition.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'lib/libcxx/include/__system_error/error_condition.h') diff --git a/lib/libcxx/include/__system_error/error_condition.h b/lib/libcxx/include/__system_error/error_condition.h index a43a73cdc2..42898c1f0e 100644 --- a/lib/libcxx/include/__system_error/error_condition.h +++ b/lib/libcxx/include/__system_error/error_condition.h @@ -58,9 +58,8 @@ public: : __val_(__val), __cat_(&__cat) {} - template - _LIBCPP_HIDE_FROM_ABI - error_condition(_Ep __e, typename enable_if::value>::type* = nullptr) _NOEXCEPT { + template ::value, int> = 0> + _LIBCPP_HIDE_FROM_ABI error_condition(_Ep __e) _NOEXCEPT { using __adl_only::make_error_condition; *this = make_error_condition(__e); } @@ -70,9 +69,8 @@ public: __cat_ = &__cat; } - template - _LIBCPP_HIDE_FROM_ABI typename enable_if< is_error_condition_enum<_Ep>::value, error_condition& >::type - operator=(_Ep __e) _NOEXCEPT { + template ::value, int> = 0> + _LIBCPP_HIDE_FROM_ABI error_condition& operator=(_Ep __e) _NOEXCEPT { using __adl_only::make_error_condition; *this = make_error_condition(__e); return *this; -- cgit v1.2.3