[clang] [llvm] [Clang] Add __builtin_allow_sanitize_check() (PR #172030)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 5 11:39:54 PST 2026


efriedma-quic wrote:

(Response delayed because I was off last two weeks.)

I don't think the name of the intrinsic makes sense.  Can we just call it `__builtin_is_sanitizer_enabled()`?

----

I think I'd like a Discourse post so people are aware we've added this. I'm not expecting any significant changes to the design, though, because there's basically only one way to do this.

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


More information about the cfe-commits mailing list