HomePhabricator

[OpenCL] Fix lang mode predefined macros for C++ mode.

Description

[OpenCL] Fix lang mode predefined macros for C++ mode.

In C++ mode we should only avoid adding OPENCL_C_VERSION,
all other predefined macros about the language mode are still
valid.

This change also fixes the language version check in the
headers accordingly.

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

Details