[clang] [clang] `__builtin_expect_with_probability` accepts value depenent parameter (PR #156113)

Chen Miao via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 22 06:57:39 PDT 2026


================

----------------
ChenMiaoi wrote:

Could we also add an explicit instantiation to the original crash test, plus a test where the probability isn't a constant expression after instantiation? That would help check that we still catch invalid arguments when the check is deferred.

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


More information about the cfe-commits mailing list