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.
Paths
| Differential D65941
[OpenCL] Fix lang mode predefined macros for C++ mode ClosedPublic Authored by Anastasia on Aug 8 2019, 4:51 AM.
Details
Summary 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.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Aug 8 2019, 5:06 AM Closed by commit rL368552: [OpenCL] Fix lang mode predefined macros for C++ mode. (authored by stulova). · Explain WhyAug 12 2019, 3:43 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 214114 lib/Frontend/InitPreprocessor.cpp
lib/Headers/opencl-c-base.h
lib/Headers/opencl-c.h
|