[PATCH] D21232: Add attribute noreturn to functions that throw

Sebastian Pop via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 16 13:35:50 PDT 2016


sebpop added a comment.

In http://reviews.llvm.org/D21232#460255, @sebpop wrote:

> In http://reviews.llvm.org/D21232#460075, @hiraditya wrote:
>
> > Thanks for the suggestion, I agree LIBCPP_NORETURN_IF_NO_EXCEPTIONS makes more sense.
>
>
> I think the name should be LIBCPP_NORETURN_IF_EXCEPTIONS:
>  we add the attribute "noreturn" when exceptions are enabled.


Or even better LIBCPP_NORETURN_ON_EXCEPTIONS


http://reviews.llvm.org/D21232





More information about the llvm-commits mailing list