================
@@ -3628,6 +3630,44 @@ Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, 
unsigned BuiltinID,
     break;
   }
 
+  case Builtin::BI__builtin_reduce_addf:
+  case Builtin::BI__builtin_ordered_reduce_addf: {
+    if (checkArgCountRange(TheCall, 1, 2))
+      return ExprError();
----------------
sdesmalen-arm wrote:

nit: I guess this needs to be `1` for `reduce_addf`, and `2` for 
`ordered_reduce_addf`?

https://github.com/llvm/llvm-project/pull/176160
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to