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:
Craig Topper 2015-11-18 07:08:11 +00:00
parent 66059c9f4d
commit 506dad8e55
1 changed files with 1 additions and 1 deletions

View File

@ -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))