================
@@ -17,6 +17,22 @@
 using namespace clang;
 using namespace CodeGen;
 
+void CodeGenFunction::EmitSYCLKernelCallStmt(const SYCLKernelCallStmt &S) {
+  if (getLangOpts().SYCLIsDevice) {
+    // A definition for a sycl_kernel_entry_point attributed function should
+    // never be emitted during device compilation; a diagnostic should be
+    // issued for any such ODR-use.
+    assert(false && "Attempt to emit a sycl_kernel_entry_point function during 
"
----------------
erichkeane wrote:

In this case, the condition in the 'if' should be in the assert, and it should 
just fall-through.  Thats the purpose of asserts. Attempting to recover from 
them like this is incorrect.

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

Reply via email to