[PATCH] D148730: [C11] Allow initialization of an atomic-qualified pointer from a null pointer constant
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 19 11:33:47 PDT 2023
aaron.ballman added inline comments.
================
Comment at: clang/lib/Sema/SemaExpr.cpp:10307
CXXCastPath Path;
CheckPointerConversion(RHS.get(), LHSType, Kind, Path,
/*IgnoreBaseAccess=*/false, Diagnose);
----------------
erichkeane wrote:
> Does the LHSType here need switching too? Or are we just going to use the 'normal' pointer conversion rules here?
The intent is to follow the normal conversion rules here -- this just allows us to check those rules properly when the LHS type is atomic as well as when it's non-atomic.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148730/new/
https://reviews.llvm.org/D148730
More information about the cfe-commits
mailing list