Simplify. NFC.

llvm-svn: 315724
This commit is contained in:
Rafael Espindola 2017-10-13 18:18:36 +00:00
parent f8c10aa3a3
commit bfc20343a3
1 changed files with 2 additions and 2 deletions

View File

@ -74,8 +74,8 @@ static void resolveReloc(InputSectionBase &Sec, RelT &Rel,
return;
}
if (auto *U = dyn_cast<Undefined>(&B))
for (InputSectionBase *Sec : CNamedSections.lookup(U->getName()))
if (B.isUndefined())
for (InputSectionBase *Sec : CNamedSections.lookup(B.getName()))
Fn(Sec, 0);
}