[PATCH] D82313: [OpenCL] Reject block arguments
Sven van Haastregt via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 22 10:12:50 PDT 2020
svenvh created this revision.
svenvh added a reviewer: Anastasia.
Herald added a subscriber: yaxunl.
OpenCL 2.0 does not allow block arguments, primarily because it is
difficult to support function pointers on the various architectures
that OpenCL targets. Clang was still accepting them.
Rename and reuse the `err_opencl_half_param` diagnostic.
Fixes PR46324.
https://reviews.llvm.org/D82313
Files:
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaType.cpp
clang/test/CodeGenOpenCL/blocks.cl
clang/test/Frontend/opencl.cl
clang/test/SemaOpenCL/invalid-block.cl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82313.272475.patch
Type: text/x-patch
Size: 5324 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200622/f3748927/attachment-0001.bin>
More information about the cfe-commits
mailing list