ichesnokov created this revision. ichesnokov added reviewers: asl, kraiskil. ichesnokov added a subscriber: cfe-commits. ichesnokov set the repository for this revision to rL LLVM.
A simple patch to ensure that char is signed. Check assumed for OpenCL only. Repository: rL LLVM http://reviews.llvm.org/D16750 Files: test/SemaOpenCL/ocl-char-is-not-signed.cl Index: test/SemaOpenCL/ocl-char-is-not-signed.cl =================================================================== --- test/SemaOpenCL/ocl-char-is-not-signed.cl +++ test/SemaOpenCL/ocl-char-is-not-signed.cl @@ -0,0 +1,3 @@ +// RUN: %clang_cc1 %s + +constant int CHECK = (char)(0xFFu) < 0 ? 0 : 1/0;
Index: test/SemaOpenCL/ocl-char-is-not-signed.cl =================================================================== --- test/SemaOpenCL/ocl-char-is-not-signed.cl +++ test/SemaOpenCL/ocl-char-is-not-signed.cl @@ -0,0 +1,3 @@ +// RUN: %clang_cc1 %s + +constant int CHECK = (char)(0xFFu) < 0 ? 0 : 1/0;
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits