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 committed 2022-04-13 22:57:39 +02:00
1 parent 667925d45a
commit d8d793f29b
1 file changed
+2 -4
+2 -4
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)