[clang] [clang][SYCL] Diagnose reference kernel parameters (PR #192957)
Mariya Podchishchaeva via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 2 06:50:07 PDT 2026
================
@@ -11802,6 +11802,10 @@ def err_record_with_pointers_kernel_param : Error<
"%select{struct|union}0 kernel parameters may not contain pointers">;
def note_within_field_of_type : Note<
"within field of type %0 declared here">;
+def note_within_capture : Note<
+ "within captured variable of lambda declared here">;
----------------
Fznamznon wrote:
Ok, added in 76f9e65591b5503bb2fb4c535616cb3d6229d84b .
https://github.com/llvm/llvm-project/pull/192957
More information about the cfe-commits
mailing list