summaryrefslogtreecommitdiff
path: root/lib/Headers
diff options
context:
space:
mode:
authorAndrew Savonichev <andrew.savonichev@intel.com>2019-06-03 13:02:43 +0000
committerAndrew Savonichev <andrew.savonichev@intel.com>2019-06-03 13:02:43 +0000
commit203bf9fe94563e315b63641ceaa4a4931cd0ecb4 (patch)
tree833b28a4bd4bd0a2ab903af8f7b364a96d20a475 /lib/Headers
parent5663f71c62400a9a2d309c8853831f118afc1bcc (diff)
downloadclang-203bf9fe94563e315b63641ceaa4a4931cd0ecb4.tar.gz
[OpenCL] Undefine cl_intel_planar_yuv extension
Summary: Remove unnecessary definition (otherwise the extension will be defined where it's not supposed to be defined). Consider the code: #pragma OPENCL EXTENSION cl_intel_planar_yuv : begin // some declarations #pragma OPENCL EXTENSION cl_intel_planar_yuv : end is enough for extension to become known for clang. Patch by: Dmitry Sidorov <dmitry.sidorov@intel.com> Reviewers: Anastasia, yaxunl Reviewed By: Anastasia Tags: #clang Differential Revision: https://reviews.llvm.org/D58666 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362398 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Headers')
-rw-r--r--lib/Headers/opencl-c.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Headers/opencl-c.h b/lib/Headers/opencl-c.h
index ba98fa6eb6..009b1e934e 100644
--- a/lib/Headers/opencl-c.h
+++ b/lib/Headers/opencl-c.h
@@ -22,9 +22,6 @@
#endif //__OPENCL_C_VERSION__ < CL_VERSION_2_0
#if __OPENCL_C_VERSION__ >= CL_VERSION_1_2
-#ifndef cl_intel_planar_yuv
-#define cl_intel_planar_yuv
-#endif // cl_intel_planar_yuv
#pragma OPENCL EXTENSION cl_intel_planar_yuv : begin
#pragma OPENCL EXTENSION cl_intel_planar_yuv : end
#endif // __OPENCL_C_VERSION__ >= CL_VERSION_1_2