]> granicus.if.org Git - clang/commit
[OpenCL] Check for invalid kernel arguments in array types
authorAlexey Sotkin <alexey.sotkin@intel.com>
Tue, 31 Jul 2018 19:47:19 +0000 (19:47 +0000)
committerAlexey Sotkin <alexey.sotkin@intel.com>
Tue, 31 Jul 2018 19:47:19 +0000 (19:47 +0000)
commite9901bde15692e135ee2b98005f5fb8cdc23fcd5
tree31464a45dac318ebcacc3c2eed449bedf0164f03
parent0065b256efa39476c9d32097b06c80a50356e27c
[OpenCL] Check for invalid kernel arguments in array types

Summary:
OpenCL specification forbids use of several types as kernel arguments.
This patch improves existing diagnostic to look through arrays.

Patch by: Andrew Savonichev

Reviewers: Anastasia, yaxunl

Subscribers: yaxunl, Anastasia, cfe-commits

Differential Revision: https://reviews.llvm.org/D49723

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@338427 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/SemaOpenCL/invalid-kernel-parameters.cl