From 084f9e1834d31e64f21260b39f087d21f96428a0 Mon Sep 17 00:00:00 2001 From: Zonr Chang Date: Fri, 6 Jan 2017 15:07:40 -0800 Subject: [PATCH] __throw* functions seem to be available in LLVM 4.0 or above. Summary: __throw* functions exist in master branch but are not included in both libc++ 3.9.0 and 3.9.1. Expect them to appear in next LLVM release (which is 4.0). Closes https://github.com/facebook/folly/pull/536 Reviewed By: yfeldblum, Orvid Differential Revision: D4377002 Pulled By: smeenai fbshipit-source-id: 5dd311ca3ec43955f29dd1197fd8fbeb9564a7f6 --- folly/portability/BitsFunctexcept.cpp | 2 +- folly/portability/BitsFunctexcept.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/folly/portability/BitsFunctexcept.cpp b/folly/portability/BitsFunctexcept.cpp index 1a52e96f..a8bac63e 100644 --- a/folly/portability/BitsFunctexcept.cpp +++ b/folly/portability/BitsFunctexcept.cpp @@ -21,7 +21,7 @@ FOLLY_NAMESPACE_STD_BEGIN -#if (!defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 3900) && \ +#if (!defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 4000) && \ !defined(FOLLY_SKIP_LIBCPP_4000_THROW_BACKPORTS) void __throw_length_error(const char* msg) { throw std::length_error(msg); diff --git a/folly/portability/BitsFunctexcept.h b/folly/portability/BitsFunctexcept.h index 1c4b8c03..7b44197b 100644 --- a/folly/portability/BitsFunctexcept.h +++ b/folly/portability/BitsFunctexcept.h @@ -25,7 +25,7 @@ #include FOLLY_NAMESPACE_STD_BEGIN -#if (!defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 3900) && \ +#if (!defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 4000) && \ !defined(FOLLY_SKIP_LIBCPP_4000_THROW_BACKPORTS) [[noreturn]] void __throw_length_error(const char* msg); [[noreturn]] void __throw_logic_error(const char* msg); -- 2.34.1