Remove unnecessary local variable.

llvm-svn: 307703
This commit is contained in:
Rui Ueyama 2017-07-11 20:33:04 +00:00
parent 801b5319c5
commit 9a1898768f
1 changed files with 1 additions and 2 deletions

View File

@ -707,12 +707,11 @@ void SymbolTable<ELFT>::assignWildcardVersion(SymbolVersion Ver,
uint16_t VersionId) {
if (!Ver.HasWildcard)
return;
std::vector<SymbolBody *> Syms = findAllByVersion(Ver);
// Exact matching takes precendence over fuzzy matching,
// so we set a version to a symbol only if no version has been assigned
// to the symbol. This behavior is compatible with GNU.
for (SymbolBody *B : Syms)
for (SymbolBody *B : findAllByVersion(Ver))
if (B->symbol()->VersionId == Config->DefaultSymbolVersion)
B->symbol()->VersionId = VersionId;
}