[libc-commits] [libc] [libc] Add `__builtin_expect` tag on assert conditions; NFC (PR #99498)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Thu Jul 18 07:30:50 PDT 2024


https://github.com/jhuber6 commented:

I remember discussing something similar with @AaronBallman about adding `__builtin_assume` to the assert macros. I think the answer then was that the C standard specifies exactly what `assert` should look like so we can't change it? I think `LIBC_ASSERT` probably should though.

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


More information about the libc-commits mailing list