Skip to content

Commit

Permalink
[analyzer][NFC] Fix unused variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
frasercrmck committed Mar 20, 2024
1 parent e66cfeb commit 4b369ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clang/lib/StaticAnalyzer/Checkers/WebKit/ASTUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ tryToFindPtrOrigin(const Expr *E, bool StopAtFirstRefCountedObj) {
if (auto *call = dyn_cast<CallExpr>(E)) {
if (auto *memberCall = dyn_cast<CXXMemberCallExpr>(call)) {
if (auto *decl = memberCall->getMethodDecl()) {
std::optional<bool> IsGetterOfRefCt =
isGetterOfRefCounted(memberCall->getMethodDecl());
std::optional<bool> IsGetterOfRefCt = isGetterOfRefCounted(decl);
if (IsGetterOfRefCt && *IsGetterOfRefCt) {
E = memberCall->getImplicitObjectArgument();
if (StopAtFirstRefCountedObj) {
Expand Down

0 comments on commit 4b369ff

Please sign in to comment.