]> granicus.if.org Git - clang/commit
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)
commit379402b24ca6960fa12fa4a0150d621487fd58f1
treeed3ded03179177c2aaba725beaf4dbc92278a08a
parent67b42c16493bf36abe7ab093ea0a1821b36a29cb
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!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204941 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
test/SemaOpenCL/invalid-kernel.cl