Skip to content

Commit a4d45fe

Browse files
committed
[lldb][DWARF] Change GetAttributes parameter from SmallVector to SmallVectorImpl
Fixes the lldb-arm-ubuntu buildbot failure: ``` ../llvm-project/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp:374:26: error: non-const lvalue reference to type 'SmallVector<[...], (default) CalculateSmallVectorDefaultInlinedElements<T>::value aka 6>' cannot bind to a value of unrelated type 'SmallVector<[...], 3>' 374 | if (!::GetAttributes(worklist, seen, attributes)) { | ^~~~~~~~ ../llvm-project/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp:288:56: note: passing argument to parameter 'worklist' here 288 | static bool GetAttributes(llvm::SmallVector<DWARFDIE> &worklist, | ^ 1 error generated. ```
1 parent 7656902 commit a4d45fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ bool DWARFDebugInfoEntry::GetDIENamesAndRanges(
285285
/// Adds all attributes of the DIE at the top of the \c worklist to the
286286
/// \c attributes list. Specifcations and abstract origins are added
287287
/// to the \c worklist if the referenced DIE has not been seen before.
288-
static bool GetAttributes(llvm::SmallVector<DWARFDIE> &worklist,
288+
static bool GetAttributes(llvm::SmallVectorImpl<DWARFDIE> &worklist,
289289
llvm::SmallSet<DWARFDebugInfoEntry const *, 3> &seen,
290290
DWARFAttributes &attributes) {
291291
assert(!worklist.empty() && "Need at least one DIE to visit.");

0 commit comments

Comments
 (0)