[ELF] Change vector<Symbol *> to SmallVector. NFC

This commit is contained in:
Fangrui Song 2022-02-01 00:16:42 -08:00
parent 4c1b44160a
commit 4d38d7684c
1 changed files with 1 additions and 1 deletions

View File

@ -1719,7 +1719,7 @@ static void handleUndefinedGlob(StringRef arg) {
// Calling sym->extract() in the loop is not safe because it may add new
// symbols to the symbol table, invalidating the current iterator.
std::vector<Symbol *> syms;
SmallVector<Symbol *, 0> syms;
for (Symbol *sym : symtab->symbols())
if (!sym->isPlaceholder() && pat->match(sym->getName()))
syms.push_back(sym);