aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2023-05-03 14:06:04 -0400
committerAaron Ballman <aaron@aaronballman.com>2023-05-03 14:50:15 -0400
commit9bb28a18d962e8f6e3fa8f48bd2c6dc183154d26 (patch)
treea957df9e5efdf709408df48bf385ceaf7a9f4987 /clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
parent791b0fd02668fd0fcf07788d4e16bb468434f4bf (diff)
downloadllvm-9bb28a18d962e8f6e3fa8f48bd2c6dc183154d26.zip
llvm-9bb28a18d962e8f6e3fa8f48bd2c6dc183154d26.tar.gz
llvm-9bb28a18d962e8f6e3fa8f48bd2c6dc183154d26.tar.bz2
[C2x] Update 'nullptr' implementation based on CD comments
We filed some CD ballot comments which WG14 considered during the ballot comment resolution meetings in Jan and Feb 2023, and this updates our implementation based on the decisions reached. Those decisions were (paraphrased for brevity): US 9-034 (REJECTED) allow (void *)nullptr to be a null pointer constant US 10-035 (ACCEPTED) accept the following code, as in C++: void func(nullptr_t); func(0); US 22-058 (REJECTED) accept the following code, as in C++: nullptr_t val; (void)(1 ? val : 0); (void)(1 ? nullptr : 0); US 23-062 (REJECTED) reject the following code, as in C++: nullptr_t val; bool b1 = val; bool b2 = nullptr; US 24-061 (ACCEPTED) accept the following code, as in C++: nullptr_t val; val = 0; US 21-068 (ACCEPTED) accept the following code, as in C++: (nullptr_t)nullptr; GB-071 (ACCEPTED) accept the following code, as in C++: nullptr_t val; (void)(val == nullptr); This patch updates the implementation as appropriate, but is primarily focused around US 10-035, US 24-061, and US 23-062 in terms of functional changes. Differential Revision: https://reviews.llvm.org/D148800
Diffstat (limited to 'clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
0 files changed, 0 insertions, 0 deletions