[lld] r315724 - Simplify. NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 13 11:18:36 PDT 2017
Author: rafael
Date: Fri Oct 13 11:18:36 2017
New Revision: 315724
URL: http://llvm.org/viewvc/llvm-project?rev=315724&view=rev
Log:
Simplify. NFC.
Modified:
lld/trunk/ELF/MarkLive.cpp
Modified: lld/trunk/ELF/MarkLive.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/MarkLive.cpp?rev=315724&r1=315723&r2=315724&view=diff
==============================================================================
--- lld/trunk/ELF/MarkLive.cpp (original)
+++ lld/trunk/ELF/MarkLive.cpp Fri Oct 13 11:18:36 2017
@@ -74,8 +74,8 @@ static void resolveReloc(InputSectionBas
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);
}
More information about the llvm-commits
mailing list