Skip to content

Commit cc45365

Browse files
authored
[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 #126324 --------- Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
1 parent df9d3c2 commit cc45365

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)