Enforce the restriction that a parameter to a kernel function
authorDavid Tweed <david.tweed@arm.com>
Thu, 27 Mar 2014 16:34:11 +0000 (16:34 +0000)
committerDavid Tweed <david.tweed@arm.com>
Thu, 27 Mar 2014 16:34:11 +0000 (16:34 +0000)
commitababa8f95402795d9c256849570415dbf8ed26b2
tree16df14d426b29374caec2097386695c7ff228242
parent30eb9f47c6fc1f3333cbed741b1f1323730fa1f1
Enforce the restriction that a parameter to a kernel function
cannot be a pointer to the private address space (as clarified
in the OpenCL 1.2 specification).

Patch by Fraser Cormack!

llvm-svn: 204941
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDecl.cpp
clang/test/SemaOpenCL/invalid-kernel.cl