[OpenCL] Support -fdeclare-opencl-builtins in C++ mode
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Fri, 1 Nov 2019 13:56:43 +0000 (13:56 +0000)
committerSven van Haastregt <sven.vanhaastregt@arm.com>
Fri, 1 Nov 2019 13:56:43 +0000 (13:56 +0000)
commit0aed36d261d38c8dbc98bc52be26189e0ce57e30
tree7c15bbf532821f8607c00e8b211edd5a2482ca87
parente57f8ad9148d5bdf85c33fb14f2a508ce37a1130
[OpenCL] Support -fdeclare-opencl-builtins in C++ mode

Support for C++ mode was accidentally lacking due to not checking the
OpenCLCPlusPlus LangOpts version.

Differential Revision: https://reviews.llvm.org/D69233
clang/lib/Sema/SemaLookup.cpp
clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl