mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 19:44:38 +08:00
Remove unnecessary cast and branch. NFC.
llvm-svn: 299208
This commit is contained in:
@@ -1003,11 +1003,7 @@ bool elf::createThunks(ArrayRef<OutputSection *> OutputSections) {
|
||||
// We separate the creation of ThunkSections from the insertion of the
|
||||
// ThunkSections back into the OutputSection as ThunkSections are not always
|
||||
// inserted into the same OutputSection as the caller.
|
||||
for (OutputSection *Base : OutputSections) {
|
||||
auto *OS = dyn_cast<OutputSection>(Base);
|
||||
if (OS == nullptr)
|
||||
continue;
|
||||
|
||||
for (OutputSection *OS : OutputSections) {
|
||||
ThunkSection *OSTS = nullptr;
|
||||
for (InputSection *IS : OS->Sections) {
|
||||
for (Relocation &Rel : IS->Relocations) {
|
||||
|
||||
Reference in New Issue
Block a user