Skip to content

Commit cc8e8b6

Browse files
committed
Revert erroneous change
1 parent 56a41db commit cc8e8b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/StaticAnalyzer/Checkers/WebKit/RetainPtrCtorAdoptChecker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ class RetainPtrCtorAdoptChecker
197197
return;
198198

199199
// Ignore RetainPtr construction inside adoptNS, adoptCF, and retainPtr.
200-
if (isAdoptFn(DeclWithIssue) || isRetainPtr(safeGetName(DeclWithIssue)))
200+
if (isAdoptFn(DeclWithIssue) || safeGetName(DeclWithIssue) == "retainPtr")
201201
return;
202202

203203
std::string Name = "RetainPtr constructor";

0 commit comments

Comments
 (0)