[cfe-dev] Feature Request: __builtin_undefined()

Joerg Sonnenberger via cfe-dev cfe-dev at lists.llvm.org
Sat Oct 7 10:53:02 PDT 2017


On Sat, Oct 07, 2017 at 01:10:44PM -0400, Ryan Nicholl via cfe-dev wrote:
> This would serve multiple purposes, it would be similar to
> __builtin_unreachable, but can be used to specify that the behavior
> upon reaching it it undefined (not necessarily that it can't be reached.)

Why can't you use __builtin_trap() for this purpose?

Joerg



More information about the cfe-dev mailing list