[clang] [Clang] [CUDA] Emit a trap for __builtin_abort() on the device side (PR #243600)

Ambrose Leeb via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 18 10:57:28 PST 2026


Sirraide wrote:

I mean, my reasoning was that it is a bit strange to have a builtin that just fails to link, but I guess if the idea really is less ‘abort the program’ and more ‘call C `abort()`’, then yes, this probably works as intended. 

I’m not sure if we have a model for what should happen if `__builtin_abort()` is used on a platform where `abort()` does not exist? Do we just assume that can’t happen?

https://github.com/llvm/llvm-project/pull/243600


More information about the cfe-commits mailing list