From b575ce587d323dc54d3efc7ffdcc2c387d8f7073 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 17 Dec 2024 14:04:37 -0800 Subject: [clang-doc][NFC] Use isa over dyn_cast (#120309) These call sites don't need the cast, as they don't use the value. --- clang-tools-extra/clang-doc/Serialize.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang-tools-extra/clang-doc/Serialize.cpp b/clang-tools-extra/clang-doc/Serialize.cpp index b9db78cf7d68..34b9121d3154 100644 --- a/clang-tools-extra/clang-doc/Serialize.cpp +++ b/clang-tools-extra/clang-doc/Serialize.cpp @@ -242,9 +242,9 @@ TypeInfo getTypeInfoForType(const QualType &T) { return TypeInfo(Reference(SymbolID(), T.getAsString())); InfoType IT; - if (dyn_cast(TD)) { + if (isa(TD)) { IT = InfoType::IT_enum; - } else if (dyn_cast(TD)) { + } else if (isa(TD)) { IT = InfoType::IT_record; } else { IT = InfoType::IT_default; -- cgit v1.2.3