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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user