[libcxx] r268838 - Fix typo it _LIBCPP_NO_EXCEPTIONS macro

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Fri May 6 19:30:22 PDT 2016


Author: ericwf
Date: Fri May  6 21:30:21 2016
New Revision: 268838

URL: http://llvm.org/viewvc/llvm-project?rev=268838&view=rev
Log:
Fix typo it _LIBCPP_NO_EXCEPTIONS macro

Modified:
    libcxx/trunk/include/exception

Modified: libcxx/trunk/include/exception
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/exception?rev=268838&r1=268837&r2=268838&view=diff
==============================================================================
--- libcxx/trunk/include/exception (original)
+++ libcxx/trunk/include/exception Fri May  6 21:30:21 2016
@@ -80,7 +80,7 @@ template <class E> void rethrow_if_neste
 #include <__config>
 #include <cstddef>
 #include <type_traits>
-#if defined(_LIBCPP_HAS_NO_EXCEPTIONS)
+#if defined(_LIBCPP_NO_EXCEPTIONS)
 #include <cstdio>
 #include <cstdlib>
 #endif
@@ -260,7 +260,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
 template <class _Exception>
 _LIBCPP_INLINE_VISIBILITY
 inline void __libcpp_throw(_Exception const& __e) {
-#ifndef _LIBCPP_HAS_NO_EXCEPTIONS
+#ifndef _LIBCPP_NO_EXCEPTIONS
     throw __e;
 #else
     _VSTD::fprintf(stderr, "%s\n", __e.what());




More information about the cfe-commits mailing list