[cfe-commits] [libcxx] r160038 - /libcxx/trunk/src/exception.cpp

Joerg Sonnenberger joerg at britannica.bec.de
Wed Jul 11 03:17:53 PDT 2012


On Wed, Jul 11, 2012 at 09:35:48AM -0000, Richard Smith wrote:
> @@ -96,12 +102,9 @@
>  #ifndef LIBCXXRT
>  bool uncaught_exception() _NOEXCEPT
>  {
> -#if __APPLE__
> +#if __APPLE__ || defined(_LIBCPPABI_VERSION)
>      // on Darwin, there is a helper function so __cxa_get_globals is private
>      return __cxa_uncaught_exception();
> -#elif LIBCXXRT
> -    __cxa_eh_globals * globals = __cxa_get_globals();
> -    return (globals->uncaughtExceptions != 0);
>  #else  // __APPLE__
>      #warning uncaught_exception not yet implemented
>      ::abort();

This looks wrong.

Joerg



More information about the cfe-commits mailing list