Skip to content

Commit bcebed6

Browse files
committed
Formatting, fix warning
Created using spr 1.3.6-beta.1
1 parent 0306084 commit bcebed6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lld/ELF/Arch/TargetImpl.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ inline void applyBranchToBranchOptImpl(
4343
// reading relocations of other sections.
4444
for (ELFFileBase *f : ctx.objectFiles) {
4545
auto getRelocBranchInfo =
46-
[&ctx, &getBranchInfo](Relocation &r,
47-
uint64_t addend) -> std::pair<Relocation *, uint64_t> {
46+
[&getBranchInfo](Relocation &r,
47+
uint64_t addend) -> std::pair<Relocation *, uint64_t> {
4848
auto *target = dyn_cast_or_null<Defined>(r.sym);
4949
// We don't allow preemptible symbols (may go somewhere else),
5050
// absolute symbols (runtime behavior unknown), non-executable memory
@@ -54,21 +54,21 @@ inline void applyBranchToBranchOptImpl(
5454
target->section->kind() != SectionBase::Regular)
5555
return {nullptr, 0};
5656
return getBranchInfo(*cast<InputSection>(target->section),
57-
target->value + addend);
57+
target->value + addend);
5858
};
5959
for (InputSectionBase *s : f->getSections()) {
6060
if (!s)
6161
continue;
6262
for (Relocation &r : s->relocations) {
6363
if (std::optional<uint64_t> addend =
64-
getControlTransferAddend(*cast<InputSection>(s),
65-
r)) {
64+
getControlTransferAddend(*cast<InputSection>(s), r)) {
6665
std::pair<Relocation *, uint64_t> targetAndAddend =
6766
getRelocBranchInfo(r, *addend);
6867
if (targetAndAddend.first) {
6968
while (1) {
7069
std::pair<Relocation *, uint64_t> nextTargetAndAddend =
71-
getRelocBranchInfo(*targetAndAddend.first, targetAndAddend.second);
70+
getRelocBranchInfo(*targetAndAddend.first,
71+
targetAndAddend.second);
7272
if (!nextTargetAndAddend.first)
7373
break;
7474
targetAndAddend = nextTargetAndAddend;

0 commit comments

Comments
 (0)