[all-commits] [llvm/llvm-project] 790cba: [OpenCL] Fix diagnostics with templates in kernel ...
Anastasia Stulova via All-commits
all-commits at lists.llvm.org
Thu Nov 10 10:56:44 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 790cbaafc9e276aa740373c00849951338056174
https://github.com/llvm/llvm-project/commit/790cbaafc9e276aa740373c00849951338056174
Author: Anastasia Stulova <anastasia.stulova at arm.com>
Date: 2022-11-10 (Thu, 10 Nov 2022)
Changed paths:
M clang/lib/Sema/SemaDecl.cpp
M clang/test/SemaOpenCLCXX/invalid-kernel.clcpp
Log Message:
-----------
[OpenCL] Fix diagnostics with templates in kernel args.
Improve checking for the standard layout type when diagnosing
the kernel argument with templated types. The check doesn't work
correctly for references or pointers due to the lazy template
instantiation.
Current fix only improves cases where nested types in the templates
do not depend on the template parameters.
Differential Revision: https://reviews.llvm.org/D134445
More information about the All-commits
mailing list