[all-commits] [llvm/llvm-project] 362958: [C++4OpenCL] Add extra diagnostics for kernel argu...
Anastasia Stulova via All-commits
all-commits at lists.llvm.org
Thu Apr 22 07:29:46 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 362958ac7346ba3539f819e9fe93d2529caad1e8
https://github.com/llvm/llvm-project/commit/362958ac7346ba3539f819e9fe93d2529caad1e8
Author: Anastasia Stulova <anastasia.stulova at arm.com>
Date: 2021-04-22 (Thu, 22 Apr 2021)
Changed paths:
M clang/lib/Sema/SemaDecl.cpp
M clang/test/SemaOpenCLCXX/invalid-kernel.clcpp
Log Message:
-----------
[C++4OpenCL] Add extra diagnostics for kernel argument types
Add restrictions on type layout (PR48099):
- Types passed by pointer or reference must be standard layout types.
- Types passed by value must be POD types.
Patch by olestrohm (Ole Strohm)!
Differential Revision: https://reviews.llvm.org/D100471
More information about the All-commits
mailing list