[PATCH] D59123: [analyzer] RetainCount: Fix a crash when a function follows retain/autorelease naming convention but takes no arguments.
Artem Dergachev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 7 17:57:20 PST 2019
NoQ added a comment.
The actual crash happens in `RetainCountChecker::evalCall()`:
912 const Expr *BindReturnTo =
913 (BSmr == BehaviorSummary::IdentityThis)
914 ? cast<CXXMemberCallExpr>(CE)->getImplicitObjectArgument()
915 : CE->getArg(0); // <== here
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59123/new/
https://reviews.llvm.org/D59123
More information about the cfe-commits
mailing list