]> granicus.if.org Git - clang/commit
[OpenCL] Fix pipe builtin bugs
authorXiuli Pan <xiulipan@outlook.com>
Wed, 30 Mar 2016 04:46:32 +0000 (04:46 +0000)
committerXiuli Pan <xiulipan@outlook.com>
Wed, 30 Mar 2016 04:46:32 +0000 (04:46 +0000)
commit7c065afc52d232e39013584be0bd972497b1c65e
tree947c5b7d852a5862aed87dbbd7c0a27ed30c4910
parent6484b95d634f53dd929c75265ef3c4decf397584
[OpenCL] Fix pipe builtin bugs

Summary:
1. Diag should be output if types are not the same.
2. Should compare using canonical type.
3. Refine the diag to be more clear.

Reviewers: yaxunl, Anastasia

Subscribers: MatsPetersson, pekka.jaaskelainen, cfe-commits

Differential Revision: http://reviews.llvm.org/D17955

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@264825 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaChecking.cpp
test/SemaOpenCL/invalid-pipe-builtin-cl2.0.cl