forked from OSchip/llvm-project
Remove unnecessary cast and branch. NFC.
llvm-svn: 299208
This commit is contained in:
parent
80745c52bc
commit
50c374f37a
|
@ -1003,11 +1003,7 @@ bool elf::createThunks(ArrayRef<OutputSection *> OutputSections) {
|
||||||
// We separate the creation of ThunkSections from the insertion of the
|
// We separate the creation of ThunkSections from the insertion of the
|
||||||
// ThunkSections back into the OutputSection as ThunkSections are not always
|
// ThunkSections back into the OutputSection as ThunkSections are not always
|
||||||
// inserted into the same OutputSection as the caller.
|
// inserted into the same OutputSection as the caller.
|
||||||
for (OutputSection *Base : OutputSections) {
|
for (OutputSection *OS : OutputSections) {
|
||||||
auto *OS = dyn_cast<OutputSection>(Base);
|
|
||||||
if (OS == nullptr)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
ThunkSection *OSTS = nullptr;
|
ThunkSection *OSTS = nullptr;
|
||||||
for (InputSection *IS : OS->Sections) {
|
for (InputSection *IS : OS->Sections) {
|
||||||
for (Relocation &Rel : IS->Relocations) {
|
for (Relocation &Rel : IS->Relocations) {
|
||||||
|
|
Loading…
Reference in New Issue