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
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to