diff --git a/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp b/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp --- a/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp +++ b/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp @@ -801,11 +801,7 @@ const TypedefRecord &Record) { // Typedefs of anonymous types have their entries unified with the underlying // type. - bool ShouldDrop = Record.UnderlyingType.Name.empty(); - // enums declared with `NS_OPTION` have a named enum and a named typedef, with - // the same name - ShouldDrop |= (Record.UnderlyingType.Name == Record.Name); - if (ShouldDrop) + if (Record.UnderlyingType.Name.empty()) return; auto Typedef = serializeAPIRecord(Record);