[clang] [clang][SYCL] Diagnose variadic sycl_external function (PR #216393)
Mariya Podchishchaeva via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 19 03:00:12 PDT 2026
================
@@ -13545,6 +13545,8 @@ def err_sycl_external_invalid_main : Error<
"%0 cannot be applied to the 'main' function">;
def err_sycl_external_invalid_deleted_function : Error<
"%0 cannot be applied to an explicitly deleted function">;
+def err_sycl_external_invalid_variadic_function : Error<
+ "%0 cannot be applied to a variadic function">;
----------------
Fznamznon wrote:
I wonder if sycl_external attribute just should be dropped from variadic functions. There is no point enforcing device codegen for these.
https://github.com/llvm/llvm-project/pull/216393
More information about the cfe-commits
mailing list