[clang] [Clang] Add __has_target_builtin macro (PR #126324)
Nick Sarnie via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 20 09:58:39 PST 2025
================
@@ -1819,8 +1822,12 @@ void Preprocessor::ExpandBuiltinMacro(Token &Tok) {
// usual allocation and deallocation functions. Required by libc++
return 201802;
default:
+ // __has_target_builtin should return false for aux builtins.
+ if (IsHasTargetBuiltin &&
+ getBuiltinInfo().isAuxBuiltinID(BuiltinID))
----------------
sarnex wrote:
Sure, opened PR [here](https://github.com/llvm/llvm-project/pull/128038) and added you as a reviewer.
https://github.com/llvm/llvm-project/pull/126324
More information about the cfe-commits
mailing list