[OpenCL] Fix pipe built-in functions return type.
authorAlexey Bader <aleksey.bader@mail.ru>
Wed, 7 Sep 2016 10:32:03 +0000 (10:32 +0000)
committerAlexey Bader <aleksey.bader@mail.ru>
Wed, 7 Sep 2016 10:32:03 +0000 (10:32 +0000)
commitaf17c7959e1403a5d4ca0132ed81284ab69aa777
tree48d78905a8bf01ed1068d371ee2ba1305e5a8b0d
parent51da9c717861d5e5d58133723db5817c5ccbff88
[OpenCL] Fix pipe built-in functions return type.

By default return type of call expressions calling built-in
functions is set to bool.

Fixes https://llvm.org/bugs/show_bug.cgi?id=30219.

Reviewers: Anastasia

Subscribers: dmitry, cfe-commits, yaxunl

Differential Revision: https://reviews.llvm.org/D24136

llvm-svn: 280800
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGenOpenCL/pipe_builtin.cl