================
@@ -2308,6 +2338,8 @@ getTypeHierarchy(ParsedAST &AST, Position Pos, int
ResolveLevels,
std::optional<std::vector<TypeHierarchyItem>>
superTypes(const TypeHierarchyItem &Item, const SymbolIndex *Index) {
std::vector<TypeHierarchyItem> Results;
+ if (!Index)
+ return Results;
if (!Item.data.parents)
return std::nullopt;
----------------
ratzdi wrote:
done.
https://github.com/llvm/llvm-project/pull/170103
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits