[lld] r267147 - Simplify. NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 22 04:46:28 PDT 2016
Author: rafael
Date: Fri Apr 22 06:46:28 2016
New Revision: 267147
URL: http://llvm.org/viewvc/llvm-project?rev=267147&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=267147&r1=267146&r2=267147&view=diff
==============================================================================
--- lld/trunk/ELF/MarkLive.cpp (original)
+++ lld/trunk/ELF/MarkLive.cpp Fri Apr 22 06:46:28 2016
@@ -50,12 +50,10 @@ static void forEachSuccessor(InputSectio
for (const Elf_Shdr *RelSec : Sec->RelocSections) {
if (RelSec->sh_type == SHT_RELA) {
for (const Elf_Rela &RI : Obj.relas(RelSec))
- if (InputSectionBase<ELFT> *Succ = Sec->getRelocTarget(RI))
- Fn(Succ);
+ Fn(Sec->getRelocTarget(RI));
} else {
for (const Elf_Rel &RI : Obj.rels(RelSec))
- if (InputSectionBase<ELFT> *Succ = Sec->getRelocTarget(RI))
- Fn(Succ);
+ Fn(Sec->getRelocTarget(RI));
}
}
}
More information about the llvm-commits
mailing list