Skip to content

Commit ec0c7ea

Browse files
author
Alex B
committed
std::partition_point => llvm::partition_point
1 parent e1408de commit ec0c7ea

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lld/MachO/ConcatOutputSection.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,10 @@ uint64_t TextOutputSection::estimateStubsInRangeVA(size_t callIdx) const {
188188
// Tally up any thunks that have already been placed that have VA higher than
189189
// inputs[callIdx]. First, find the index of the first thunk that is beyond
190190
// the current inputs[callIdx].
191-
auto itPostcallIdxThunks = std::partition_point(
192-
thunks.begin(), thunks.end(),
193-
[isecVA](const ConcatInputSection *t) { return t->getVA() <= isecVA; });
191+
auto itPostcallIdxThunks =
192+
llvm::partition_point(thunks, [isecVA](const ConcatInputSection *t) {
193+
return t->getVA() <= isecVA;
194+
});
194195
uint64_t existingForwardThunks = thunks.end() - itPostcallIdxThunks;
195196

196197
// Estimate the address after which call sites can safely call stubs

0 commit comments

Comments
 (0)