forked from OSchip/llvm-project
Replace a dyn_cast with isa where the result was only being used as a boolean. NFC.
llvm-svn: 253442
This commit is contained in:
parent
66059c9f4d
commit
506dad8e55
|
@ -302,7 +302,7 @@ void UseDefaultCheck::check(const MatchFinder::MatchResult &Result) {
|
|||
if (!StartLoc.isValid())
|
||||
return;
|
||||
}
|
||||
} else if (dyn_cast<CXXDestructorDecl>(SpecialFunctionDecl)) {
|
||||
} else if (isa<CXXDestructorDecl>(SpecialFunctionDecl)) {
|
||||
SpecialFunctionName = "destructor";
|
||||
} else {
|
||||
if (!isCopyAssignmentAndCanBeDefaulted(Result.Context, SpecialFunctionDecl))
|
||||
|
|
Loading…
Reference in New Issue