[PATCH] D28860: [OpenCL] Diagnose write_only image3d when extension is disabled

Sven van Haastregt via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 18 06:56:49 PST 2017


svenvh created this revision.

Prior to OpenCL 2.0, image3d_t can only be used with the write_only
access qualifier when the cl_khr_3d_image_writes extension is enabled.
Clang did not diagnose write_only image3d arguments when the extension
was disabled.

Guard uses of write_only image3d in the OpenCL header.


https://reviews.llvm.org/D28860

Files:
  lib/Headers/opencl-c.h
  lib/Sema/SemaType.cpp
  test/Headers/opencl-c-header.cl
  test/SemaOpenCL/access-qualifier.cl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28860.84830.patch
Type: text/x-patch
Size: 11027 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170118/7d2e7e22/attachment.bin>


More information about the cfe-commits mailing list