[clang] [Clang] __has_builtin should return false for aux triple builtins (PR #121839)

Nick Sarnie via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 13 11:49:44 PST 2025


sarnex wrote:

> I believe the conclusion was that we should emit the builtin functions, but `__has_builtin` should return false for builtins only present in the aux triple. For the one test that complicates this behavior, I don't think the use-case is completely well-formed but was hoping @boomanaiden154 would chime in on what the expected behavior is. I would prefer if this is just a simply check for "not in aux builtin".

Thanks, hopefully we can figure out the intended behavior.



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


More information about the cfe-commits mailing list