[clang] [Clang][Sema][Builtins] Check argument count for `__builtin_allow_sanitize_check` (PR #183927)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 2 09:54:50 PST 2026


================
@@ -3816,6 +3804,9 @@ Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID,
   }
 
   case Builtin::BI__builtin_allow_sanitize_check: {
+    if (checkArgCount(TheCall, 1))
----------------
AaronBallman wrote:

I think we can do this now; there was a time when we had less table generation for builtin information, but I think we should have everything we need now to automatically check arg counts when we can.

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


More information about the cfe-commits mailing list