Fix compatibility with retroactive C++23 change [NFC]

Referring to capture in parameter list is now ill-formed.
This change is made to prepare for https://reviews.llvm.org/D119136
This commit is contained in:
Corentin Jabot
2022-04-13 22:47:44 +02:00
parent 667925d45a
commit d8d793f29b

View File

@@ -625,10 +625,8 @@ namespace llvm {
// if the Seg is lower find first segment that is above Idx using binary
// search
if (Seg->end <= *Idx) {
Seg = std::upper_bound(
++Seg, EndSeg, *Idx,
[=](std::remove_reference_t<decltype(*Idx)> V,
const std::remove_reference_t<decltype(*Seg)> &S) {
Seg =
std::upper_bound(++Seg, EndSeg, *Idx, [=](auto V, const auto &S) {
return V < S.end;
});
if (Seg == EndSeg)