[clang] [LifetimeSafety] More support for member expressions (PR #191865)

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 17 02:06:10 PDT 2026


================
@@ -240,7 +240,7 @@ OriginList *OriginManager::getOrCreateList(const Expr *E) {
     ReferencedDecl = DRE->getDecl();
   else if (auto *ME = dyn_cast<MemberExpr>(E))
     if (auto *Field = dyn_cast<FieldDecl>(ME->getMemberDecl());
-        Field && isa<CXXThisExpr>(ME->getBase()->IgnoreParenImpCasts()))
+        Field && isa<CXXThisExpr>(ME->getBase()->IgnoreImpCasts()))
----------------
Xazax-hun wrote:

Any reason for this change? Would this still work with `(foo).bar`?

https://github.com/llvm/llvm-project/pull/191865


More information about the cfe-commits mailing list