Skip to content

Commit 4d38d76

Browse files
committed
[ELF] Change vector<Symbol *> to SmallVector. NFC
1 parent 4c1b441 commit 4d38d76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/ELF/Driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1719,7 +1719,7 @@ static void handleUndefinedGlob(StringRef arg) {
17191719

17201720
// Calling sym->extract() in the loop is not safe because it may add new
17211721
// symbols to the symbol table, invalidating the current iterator.
1722-
std::vector<Symbol *> syms;
1722+
SmallVector<Symbol *, 0> syms;
17231723
for (Symbol *sym : symtab->symbols())
17241724
if (!sym->isPlaceholder() && pat->match(sym->getName()))
17251725
syms.push_back(sym);

0 commit comments

Comments
 (0)