================ @@ -8510,7 +8510,8 @@ class MappableExprsHandler { assert(VDecl == VD && "We got information for the wrong declaration??"); assert(!Components.empty() && "Not expecting declaration with no component lists."); - if (VD && E && VD->getType()->isAnyPointerType() && isa<DeclRefExpr>(E)) + if (VD && VD->getType()->isAnyPointerType() && + isa_and_nonnull<DeclRefExpr>(E)) HasMapBasePtr = true; if (VD && E && VD->getType()->isAnyPointerType() && (isa<ArraySectionExpr>(E) || isa<ArraySubscriptExpr>(E))) ---------------- samolisov wrote:
I agree and will return this change back to preserve the consistence. https://github.com/llvm/llvm-project/pull/94987 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits