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

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 30 06:28:18 PDT 2026


================
@@ -9752,7 +9752,7 @@ def warn_kern_is_inline : Warning<
   "ignored 'inline' attribute on kernel function %0">,
   InGroup<CudaCompat>;
 def err_variadic_device_fn : Error<
-  "CUDA device code does not support variadic functions">;
+  "%select{CUDA|SYCL}0 device code does not support variadic functions">;
----------------
erichkeane wrote:

select-enum would be nicer here.

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


More information about the cfe-commits mailing list