[PATCH] D67714: [OpenCL] Add -Wconversion to fdeclare-opencl-builtins test

Anastasia Stulova via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 24 08:21:04 PDT 2019


Anastasia added inline comments.


================
Comment at: clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl:102
 // expected-error at -2{{implicit declaration of function 'get_sub_group_size' is invalid in OpenCL}}
+// expected-error at -3{{implicit conversion changes signedness: 'int' to 'uint' (aka 'unsigned int')}}
 #endif
----------------
I am slightly confused about this error, isn't `get_sub_group_size` supposed to return uint?


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67714/new/

https://reviews.llvm.org/D67714





More information about the cfe-commits mailing list