[clang] 52f7cd2 - [OpenCL] Fix condition macro name in test

Justas Janickas via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 6 05:14:46 PDT 2021


Author: Justas Janickas
Date: 2021-09-06T13:13:13+01:00
New Revision: 52f7cd23b4af84c9e195e9e2263b8ece8d233fe2

URL: https://github.com/llvm/llvm-project/commit/52f7cd23b4af84c9e195e9e2263b8ece8d233fe2
DIFF: https://github.com/llvm/llvm-project/commit/52f7cd23b4af84c9e195e9e2263b8ece8d233fe2.diff

LOG: [OpenCL] Fix condition macro name in test

Added: 
    

Modified: 
    clang/test/SemaOpenCL/access-qualifier.cl

Removed: 
    


################################################################################
diff  --git a/clang/test/SemaOpenCL/access-qualifier.cl b/clang/test/SemaOpenCL/access-qualifier.cl
index c538e73253ce0..fc6ad750e7174 100644
--- a/clang/test/SemaOpenCL/access-qualifier.cl
+++ b/clang/test/SemaOpenCL/access-qualifier.cl
@@ -79,7 +79,7 @@ kernel void read_write_twice_typedef(read_write img1d_rw i){} // expected-warnin
 // expected-note at -67 {{previously declared 'read_write' here}}
 #endif
 
-#if OPENCL_C_VERSION__ >= 200
+#if __OPENCL_C_VERSION__ >= 200
 void myPipeWrite(write_only pipe int); // expected-note {{passing argument to parameter here}}
 kernel void k14(read_only pipe int p) {
   myPipeWrite(p); // expected-error {{passing '__private read_only pipe int' to parameter of incompatible type 'write_only pipe int'}}


        


More information about the cfe-commits mailing list