Simplify. No functionality changes.

llvm-svn: 216257
This commit is contained in:
Rui Ueyama 2014-08-22 02:00:58 +00:00
parent b49d7abb7b
commit 839fb2f10c
1 changed files with 3 additions and 6 deletions

View File

@ -398,12 +398,9 @@ std::vector<const UndefinedAtom *> SymbolTable::undefines() {
for (auto it : _nameTable) {
const Atom *atom = it.second;
assert(atom != nullptr);
if (const auto undef = dyn_cast<const UndefinedAtom>(atom)) {
AtomToAtom::iterator pos = _replacedAtoms.find(undef);
if (pos != _replacedAtoms.end())
continue;
ret.push_back(undef);
}
if (const auto *undef = dyn_cast<const UndefinedAtom>(atom))
if (_replacedAtoms.count(undef) == 0)
ret.push_back(undef);
}
return ret;
}