clang/test/SemaSYCL/sycl-cconv.cpp
0 → 100644
+35
−0
+45
−0
Loading
SYCL doesn't allow variadic functions to be called from device code. Since SYCL device compilation mostly uses targets that don't natively support variadic fucntions, we now issue an error even if the variadic function is never called from the device if it has cdecl calling convention attribute. We also now don't issue an error if a variadic function is called from the device code. This patch defers the error caused by cdecl attribute to the actual call point and adds diagnosing of variadic function calls on device side using deferred diagnostics.