Redefines NULL as nullptr instead of ((void*)0) in C++ for OpenCL.
Such internal representation of NULL provides compatibility with
C++11 and later language standards.
Fixes llvm.org/PR48098
Paths
| Differential D105987
[C++4OpenCL] NULL redefined as nullptr ClosedPublic Authored by Topotuna on Jul 14 2021, 8:08 AM.
Details
Summary Redefines NULL as nullptr instead of ((void*)0) in C++ for OpenCL. Such internal representation of NULL provides compatibility with Fixes llvm.org/PR48098
Diff Detail
Event TimelineTopotuna added a parent revision: D105988: [OpenCL] NULL introduced prior to v2.0.Jul 14 2021, 8:24 AM
Topotuna added inline comments.
Topotuna added inline comments. Topotuna added a parent revision: D106254: [OpenCL][NFC] Refactors conditional versioning.Jul 19 2021, 2:24 AM This revision is now accepted and ready to land.Jul 19 2021, 2:48 PM Topotuna removed a parent revision: D105988: [OpenCL] NULL introduced prior to v2.0.Jul 20 2021, 1:01 AM This revision was landed with ongoing or failed builds.Jul 27 2021, 8:34 AM Closed by commit rGe5f47eedeb02: [OpenCL] NULL redefined as nullptr in C++ mode. (authored by Anastasia). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 362040 clang/lib/Headers/opencl-c-base.h
clang/test/SemaOpenCL/null_literal.cl
|
I think these lines here are from another patch.