diff --git a/clang-tools-extra/clang-doc/Serialize.cpp b/clang-tools-extra/clang-doc/Serialize.cpp index 1dcccf3c3c2ab..bc31621f4a92e 100644 --- a/clang-tools-extra/clang-doc/Serialize.cpp +++ b/clang-tools-extra/clang-doc/Serialize.cpp @@ -246,9 +246,9 @@ static TypeInfo getTypeInfoForType(const QualType &T, return TypeInfo(Reference(SymbolID(), T.getAsString(Policy))); 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;