diff options
author | Anastasia Stulova <anastasia.stulova@arm.com> | 2021-07-23 11:50:39 +0100 |
---|---|---|
committer | Anastasia Stulova <anastasia.stulova@arm.com> | 2021-07-23 11:54:36 +0100 |
commit | 5c63bf3abdc74b02c58c21cb0571eb4ba12b5235 (patch) | |
tree | 8efde67bcb6e2ee1b0c560962e24bc449b3bf8ef /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp | |
parent | fb978f092c9c1eff56906c65123944140c89f9cd (diff) | |
download | llvm-5c63bf3abdc74b02c58c21cb0571eb4ba12b5235.zip llvm-5c63bf3abdc74b02c58c21cb0571eb4ba12b5235.tar.gz llvm-5c63bf3abdc74b02c58c21cb0571eb4ba12b5235.tar.bz2 |
[OpenCL] Add NULL to standards prior to v2.0.
NULL was undefined in OpenCL prior to version 2.0. However, the
language specification states that "macro names defined by the C99
specification but not currently supported by OpenCL are reserved
for future use". Therefore, application developers cannot redefine
NULL.
The change is supposed to resolve inconsistency between language
versions. Currently there is no apparent reason why NULL should
be kept undefined.
Patch by Topotuna (Justas Janickas)!
Differential Revision: https://reviews.llvm.org/D105988
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions