[PATCH] D134445: [PR57881][OpenCL] Fix incorrect diagnostics with templated types in kernel arguments
John McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 10 13:41:50 PST 2022
rjmccall added a comment.
You really can't ask whether a class template pattern is standard layout; it's not meaningful.
How are pointers and references passed to kernels? Does the pointee get copied or something? If so, you may have a requirement that pointee types be complete, in which case the only problem is probably that you're doing this check too soon, or doing them on declarations rather than on definition/use.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134445/new/
https://reviews.llvm.org/D134445
More information about the cfe-commits
mailing list