We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c21ba68 commit 8600e19Copy full SHA for 8600e19
lld/ELF/Driver.cpp
@@ -1732,9 +1732,9 @@ static void readConfigs(Ctx &ctx, opt::InputArgList &args) {
1732
for (opt::Arg *arg : args.filtered(OPT_z)) {
1733
std::pair<StringRef, StringRef> option =
1734
StringRef(arg->getValue()).split('=');
1735
- ReportOptDesc *const desc = std::lower_bound(
1736
- std::begin(reports), std::end(reports), option.first,
1737
- [](const ReportOptDesc &d, const StringRef &s) { return d.name < s; });
+ ReportOptDesc *const desc = std::partition_point(
+ std::begin(reports), std::end(reports),
+ [&](const ReportOptDesc &d) { return d.name < option.first; });
1738
if (desc == std::end(reports) || desc->name != option.first)
1739
continue;
1740
0 commit comments