diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-11-18 07:08:11 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-11-18 07:08:11 +0000 |
commit | 506dad8e55bf591d55a8c9034bee80e8040ab80d (patch) | |
tree | 07fd8f6e88879d4b16badebdeba9bb43c6e123b1 | |
parent | 66059c9f4d40893b24195663c711c4fa7a35cf6a (diff) | |
download | llvm-506dad8e55bf591d55a8c9034bee80e8040ab80d.zip llvm-506dad8e55bf591d55a8c9034bee80e8040ab80d.tar.gz llvm-506dad8e55bf591d55a8c9034bee80e8040ab80d.tar.bz2 |
Replace a dyn_cast with isa where the result was only being used as a boolean. NFC.
llvm-svn: 253442
-rw-r--r-- | clang-tools-extra/clang-tidy/modernize/UseDefaultCheck.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/modernize/UseDefaultCheck.cpp b/clang-tools-extra/clang-tidy/modernize/UseDefaultCheck.cpp index 098f864..68ead15 100644 --- a/clang-tools-extra/clang-tidy/modernize/UseDefaultCheck.cpp +++ b/clang-tools-extra/clang-tidy/modernize/UseDefaultCheck.cpp @@ -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)) |