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

Marshall Clow via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 24 11:26:32 PDT 2016


mclow.lists added a comment.

> The noreturn keyword does not affect the exceptional path when that applies: a noreturn-marked function may still return to the caller by throwing an exception or calling longjmp.


I learn something new every day :-)
In that case, we can lose the `_LIBCPP_NORETURN_ON_EXCEPTIONS` macro altogether, and just mark those functions with `_LIBCPP_NORETURN` - which I think was the original proposal.

Sorry for the confusion.


https://reviews.llvm.org/D21232





More information about the llvm-commits mailing list