[llvm-branch-commits] [clang] [ConstantTime][Clang] Add __builtin_ct_select for constant-time selection (PR #166703)
Matt Arsenault via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri May 15 05:05:47 PDT 2026
================
@@ -3845,6 +3845,70 @@ Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID,
if (BuiltinCountedByRef(TheCall))
return ExprError();
break;
+
+ case Builtin::BI__builtin_ct_select: {
+ if (TheCall->getNumArgs() != 3) {
+ // Simple argument count check without complex diagnostics
----------------
arsenm wrote:
Missing error test
https://github.com/llvm/llvm-project/pull/166703
More information about the llvm-branch-commits
mailing list