summaryrefslogtreecommitdiffstats
path: root/libcxx/include/new
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-01-02 23:27:42 +0000
committerEric Fiselier <eric@efcs.ca>2017-01-02 23:27:42 +0000
commit9877c1e71387c7a060095e228e1f7a1e65c18e52 (patch)
tree0f651af715f5147963e06f5775e12833acdbdfc5 /libcxx/include/new
parentb38ad88e9f72059374742dbb7341ee29d86cfbfd (diff)
downloadbcm5719-llvm-9877c1e71387c7a060095e228e1f7a1e65c18e52.tar.gz
bcm5719-llvm-9877c1e71387c7a060095e228e1f7a1e65c18e52.zip
Fix use of throw(...) spec with GCC in C++17
llvm-svn: 290845
Diffstat (limited to 'libcxx/include/new')
-rw-r--r--libcxx/include/new2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/new b/libcxx/include/new
index 6b432f231bf..442e113665d 100644
--- a/libcxx/include/new
+++ b/libcxx/include/new
@@ -162,7 +162,7 @@ _LIBCPP_FUNC_VIS new_handler get_new_handler() _NOEXCEPT;
} // std
-#if !__has_feature(cxx_noexcept)
+#if defined(_LIBCPP_CXX03_LANG)
#define _THROW_BAD_ALLOC throw(std::bad_alloc)
#else
#define _THROW_BAD_ALLOC
OpenPOWER on IntegriCloud