diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp index f968eee091344..849f5738b62d7 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp @@ -284,9 +284,10 @@ bool DWARFDebugInfoEntry::GetDIENamesAndRanges( /// Adds all attributes of the DIE at the top of the \c worklist to the /// \c attributes list. Specifcations and abstract origins are added /// to the \c worklist if the referenced DIE has not been seen before. -static bool GetAttributes(llvm::SmallVectorImpl &worklist, - llvm::SmallSet &seen, - DWARFAttributes &attributes) { +static bool +GetAttributes(llvm::SmallVectorImpl &worklist, + llvm::SmallPtrSet &seen, + DWARFAttributes &attributes) { assert(!worklist.empty() && "Need at least one DIE to visit."); assert(seen.size() >= 1 && "Need to have seen at least the currently visited entry."); @@ -366,7 +367,7 @@ DWARFAttributes DWARFDebugInfoEntry::GetAttributes(const DWARFUnit *cu, // Keep track if DIEs already seen to prevent infinite recursion. // Value of '3' was picked for the same reason that // DWARFDie::findRecursively does. - llvm::SmallSet seen; + llvm::SmallPtrSet seen; seen.insert(this); do {