We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c1b441 commit 4d38d76Copy full SHA for 4d38d76
lld/ELF/Driver.cpp
@@ -1719,7 +1719,7 @@ static void handleUndefinedGlob(StringRef arg) {
1719
1720
// Calling sym->extract() in the loop is not safe because it may add new
1721
// symbols to the symbol table, invalidating the current iterator.
1722
- std::vector<Symbol *> syms;
+ SmallVector<Symbol *, 0> syms;
1723
for (Symbol *sym : symtab->symbols())
1724
if (!sym->isPlaceholder() && pat->match(sym->getName()))
1725
syms.push_back(sym);
0 commit comments