Skip to content

Commit b575ce5

Browse files
authored
[clang-doc][NFC] Use isa over dyn_cast (#120309)
These call sites don't need the cast, as they don't use the value.
1 parent d260350 commit b575ce5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang-tools-extra/clang-doc/Serialize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,9 @@ TypeInfo getTypeInfoForType(const QualType &T) {
242242
return TypeInfo(Reference(SymbolID(), T.getAsString()));
243243

244244
InfoType IT;
245-
if (dyn_cast<EnumDecl>(TD)) {
245+
if (isa<EnumDecl>(TD)) {
246246
IT = InfoType::IT_enum;
247-
} else if (dyn_cast<RecordDecl>(TD)) {
247+
} else if (isa<RecordDecl>(TD)) {
248248
IT = InfoType::IT_record;
249249
} else {
250250
IT = InfoType::IT_default;

0 commit comments

Comments
 (0)