From b48e3c805c253d0a1194bede81b3f8e225f40824 Mon Sep 17 00:00:00 2001 From: Sven van Haastregt Date: Fri, 25 Feb 2022 11:05:56 +0000 Subject: [PATCH] [OpenCL] opencl-c.h: Fix incorrect get_image_width guard `cl_khr_3d_image_writes` should not guard `read_only image3d_t`. --- clang/lib/Headers/opencl-c.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/clang/lib/Headers/opencl-c.h b/clang/lib/Headers/opencl-c.h index 0adf07c..9b8461b 100644 --- a/clang/lib/Headers/opencl-c.h +++ b/clang/lib/Headers/opencl-c.h @@ -15715,9 +15715,7 @@ void __ovld write_imageh(read_write image1d_buffer_t, int, half4); int __ovld __cnfn get_image_width(read_only image1d_t); int __ovld __cnfn get_image_width(read_only image1d_buffer_t); int __ovld __cnfn get_image_width(read_only image2d_t); -#ifdef cl_khr_3d_image_writes int __ovld __cnfn get_image_width(read_only image3d_t); -#endif int __ovld __cnfn get_image_width(read_only image1d_array_t); int __ovld __cnfn get_image_width(read_only image2d_array_t); #ifdef cl_khr_depth_images -- 2.7.4