================ @@ -1095,6 +1095,8 @@ class StructAccessBase return Visit(E->getBase()); } const Expr *VisitCastExpr(const CastExpr *E) { + if (E->getCastKind() == CK_LValueToRValue) + return E; ---------------- efriedma-quic wrote:
Should this be `return IsExpectedRecordDecl(E) ? E : nullptr;`? https://github.com/llvm/llvm-project/pull/110497 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits