[clang] [clang][dataflow] Retrieve members from accessors called using member… (PR #73978)
Yitzhak Mandelbaum via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 1 06:34:28 PST 2023
================
@@ -300,9 +300,10 @@ static void insertIfFunction(const Decl &D,
}
static MemberExpr *getMemberForAccessor(const CXXMemberCallExpr &C) {
- if (!C.getMethodDecl())
+ const auto *MethodDecl = dyn_cast_or_null<CXXMethodDecl>(C.getCalleeDecl());
----------------
ymand wrote:
Please add a comment explaining why we prefer this method over `getMethodDecl`.
https://github.com/llvm/llvm-project/pull/73978
More information about the cfe-commits
mailing list