[clang] [OpenCL] Set KHR extensions minimum version to OpenCL 1.0 (PR #175120)
Sven van Haastregt via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 12 08:29:04 PST 2026
================
@@ -299,14 +299,14 @@ kernel void basic_image_writeonly(write_only image1d_buffer_t image_write_only_i
int4 i4;
write_imagef(image3dwo, i4, i, f4);
-#if __OPENCL_C_VERSION__ <= CL_VERSION_1_2 && !defined(__OPENCL_CPP_VERSION__)
+#if !defined(__OPENCL_C_VERSION__) && !defined(__OPENCL_CPP_VERSION__)
----------------
svenvh wrote:
This is a valid point I think; you might just be able to remove the `expected-error` checks if they don't occur for any OpenCL version anymore.
https://github.com/llvm/llvm-project/pull/175120
More information about the cfe-commits
mailing list