[clang] b48e3c8 - [OpenCL] opencl-c.h: Fix incorrect get_image_width guard
Sven van Haastregt via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 25 03:06:11 PST 2022
Author: Sven van Haastregt
Date: 2022-02-25T11:05:56Z
New Revision: b48e3c805c253d0a1194bede81b3f8e225f40824
URL: https://github.com/llvm/llvm-project/commit/b48e3c805c253d0a1194bede81b3f8e225f40824
DIFF: https://github.com/llvm/llvm-project/commit/b48e3c805c253d0a1194bede81b3f8e225f40824.diff
LOG: [OpenCL] opencl-c.h: Fix incorrect get_image_width guard
`cl_khr_3d_image_writes` should not guard `read_only image3d_t`.
Added:
Modified:
clang/lib/Headers/opencl-c.h
Removed:
################################################################################
diff --git a/clang/lib/Headers/opencl-c.h b/clang/lib/Headers/opencl-c.h
index 0adf07cc7e3db..9b8461bfccfda 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
More information about the cfe-commits
mailing list