[libcxx] r268839 - Fix one more usage of _LIBCPP_HAS_NO_EXCEPTIONS
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Fri May 6 19:33:26 PDT 2016
Author: ericwf
Date: Fri May 6 21:33:25 2016
New Revision: 268839
URL: http://llvm.org/viewvc/llvm-project?rev=268839&view=rev
Log:
Fix one more usage of _LIBCPP_HAS_NO_EXCEPTIONS
Modified:
libcxx/trunk/src/experimental/memory_resource.cpp
Modified: libcxx/trunk/src/experimental/memory_resource.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/experimental/memory_resource.cpp?rev=268839&r1=268838&r2=268839&view=diff
==============================================================================
--- libcxx/trunk/src/experimental/memory_resource.cpp (original)
+++ libcxx/trunk/src/experimental/memory_resource.cpp Fri May 6 21:33:25 2016
@@ -50,7 +50,7 @@ public:
protected:
virtual void* do_allocate(size_t, size_t) {
-#ifndef _LIBCPP_HAS_NO_EXCEPTIONS
+#ifndef _LIBCPP_NO_EXCEPTIONS
throw std::bad_alloc();
#else
abort();
More information about the cfe-commits
mailing list