[PATCH] D106504: [OpenCL] Change default standard version to CL1.2
    Anton Zabaznov via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Thu Jul 22 05:11:50 PDT 2021
    
    
  
azabaznov added inline comments.
================
Comment at: clang/test/Parser/opencl-atomics-cl20.cl:7
 
-#if defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= CL_VERSION_1_2
+#if defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= CL_VERSION_2_0
 #define LANG_VER_OK
----------------
As OpenCL C version defaults to 1.2, I think LANG_VER_OK should always be defined now (due to run lines). But OpenCL C 1.2 has never been tested in this test... Is it a mistake in current rest?
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106504/new/
https://reviews.llvm.org/D106504
    
    
More information about the cfe-commits
mailing list