Skip to content

Commit 3e13706

Browse files
committed
explicit lambda capture
1 parent 1a7351e commit 3e13706

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ bool SeparateConstOffsetFromGEP::reorderGEP(GetElementPtrInst *GEP,
992992
bool PtrGEPInBounds = PtrGEP->isInBounds();
993993
bool IsChainInBounds = GEPInBounds && PtrGEPInBounds;
994994
if (IsChainInBounds) {
995-
auto IsKnownNonNegative = [&](Value *V) {
995+
auto IsKnownNonNegative = [this](Value *V) {
996996
return isKnownNonNegative(V, *DL);
997997
};
998998
IsChainInBounds &= all_of(GEP->indices(), IsKnownNonNegative);

0 commit comments

Comments
 (0)