[clang] [clang][ExprConst] Reject field access with nullptr base (PR #113885)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 29 07:37:08 PDT 2024
================
@@ -1703,7 +1703,7 @@ namespace {
bool checkNullPointerDiagnosingWith(const GenDiagType &GenDiag) {
if (Designator.Invalid)
return false;
- if (IsNullPtr) {
+ if (getLValueBase().isNull()) {
----------------
tbaederr wrote:
Looks like the check here was `!Base` until 402804b6d67c880c97e575342189025fe28c0f81
https://github.com/llvm/llvm-project/pull/113885
More information about the cfe-commits
mailing list