Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed Sep 18, 2024
1 parent f1739bf commit 5be5ea9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/passes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1178,9 +1178,9 @@ void sort_init_fini(Context<E> &ctx) {
for (InputSection<E> *isec : osec->members) {
std::string_view name = isec->name();
if (name.starts_with(".ctors") || name.starts_with(".dtors"))
vec.emplace_back(isec, 65535 - get_ctor_dtor_priority(isec));
vec.push_back({isec, 65535 - get_ctor_dtor_priority(isec)});
else
vec.emplace_back(isec, get_init_fini_priority(isec));
vec.push_back({isec, get_init_fini_priority(isec)});
}

sort(vec, [&](const Entry &a, const Entry &b) { return a.prio < b.prio; });
Expand Down Expand Up @@ -1209,7 +1209,7 @@ void sort_ctor_dtor(Context<E> &ctx) {

std::vector<Entry> vec;
for (InputSection<E> *isec : osec->members)
vec.emplace_back(isec, get_ctor_dtor_priority(isec));
vec.push_back({isec, get_ctor_dtor_priority(isec)});

sort(vec, [&](const Entry &a, const Entry &b) { return a.prio < b.prio; });

Expand Down

0 comments on commit 5be5ea9

Please sign in to comment.