[PATCH] D15914: [OpenCL] Pipe builtin functions

Anastasia Stulova via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 13 04:03:56 PST 2016


Anastasia added inline comments.

================
Comment at: test/SemaOpenCL/invalid-pipe-builtin-cl2.0.cl:37
@@ +36,3 @@
+  write_pipe(p, tmp);   // expected-error {{invalid argument type to function write_pipe (expecting: 'int *')}}
+  read_pipe(p, ptr);    // expected-error {{invalid pipe access modifier (expecting read_only)}}
+  read_pipe(p, rid, tmp, ptr);    // expected-error {{invalid pipe access modifier (expecting read_only)}}
----------------
Sometimes you use ":" where it's not needed.

Ex:
     invalid argument type to function write_pipe (expecting: 'int *')


http://reviews.llvm.org/D15914





More information about the cfe-commits mailing list