(original) (raw)
On Mon, Mar 22, 2021 at 7:39 AM <paul.robinson@sony.com> wrote:
> I'm inclined to omit the trap after a call to a noreturn function
\> for brevity - even though it does leave the possibility of
\> violating the noreturn contract leading to that fallthrough UB.
This is specifically the case where we needed it, at least when the
noreturn call is in the last block. Which is commonly the case, a
noreturn call is likely to have its block laid out at the end of a
function.
\--paulr
Yeah, not suggesting removing that option or changing those who've opted into that behavior - only about the default when platforms haven't otherwise cared/have already been living with zero length functions.
- Dave