[clang] [clang][SYCL] Handle cdecl variadic functions for SYCL device (PR #194922)

Mariya Podchishchaeva via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 30 08:06:41 PDT 2026


================
@@ -4459,6 +4460,11 @@ void Sema::checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto,
     }
   }
 
+  if (FD && FD->isVariadic() && getLangOpts().SYCLIsDevice &&
+      !isUnevaluatedContext()) {
----------------
Fznamznon wrote:

Fixed, thanks

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


More information about the cfe-commits mailing list