forked from OSchip/llvm-project
[ELF] Change vector<Symbol *> to SmallVector. NFC
This commit is contained in:
parent
4c1b44160a
commit
4d38d7684c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue