Skip to content

Commit fdf1340

Browse files
sarnexgithub-actions[bot]
authored andcommitted
Automerge: [clang][NFC] Update isAuxBuiltinID comment (#128038)
Clarify behavior of the function when the builtin is also supported on the main target. Based on feedback from llvm/llvm-project#126324 --------- Signed-off-by: Sarnie, Nick <[email protected]>
2 parents b6a2013 + cc45365 commit fdf1340

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/include/clang/Basic/Builtins.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,8 @@ class Context {
408408

409409
unsigned getRequiredVectorWidth(unsigned ID) const;
410410

411-
/// Return true if builtin ID belongs to AuxTarget.
411+
/// Return true if the builtin ID belongs exclusively to the AuxTarget,
412+
/// and false if it belongs to both primary and aux target, or neither.
412413
bool isAuxBuiltinID(unsigned ID) const {
413414
return ID >= (Builtin::FirstTSBuiltin + NumTargetBuiltins);
414415
}

0 commit comments

Comments
 (0)