]> granicus.if.org Git - clang/commit
Error on more illegal kernel argument types for OpenCL
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 23 Jul 2013 01:23:36 +0000 (01:23 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 23 Jul 2013 01:23:36 +0000 (01:23 +0000)
commite6c8afcf449728a5096834393fc4a1acfad9b49d
treeb77281779c78ed68814b4d7db0d6abf887fee612
parent17b3c0dd701df22eced2e90bba752fdb46abae6a
Error on more illegal kernel argument types for OpenCL

bool, half, pointers and structs / unions containing any
of these are not allowed. Does not yet reject size_t and
related integer types that are also disallowed.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186908 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/Sema/SemaDecl.cpp
test/SemaOpenCL/event_t.cl
test/SemaOpenCL/invalid-kernel-parameters.cl [new file with mode: 0644]
test/SemaOpenCL/invalid-kernel.cl