Skip to content

Commit 2c896c4

Browse files
Modified lambda to capture all external variables by reference
Co-authored-by: Alexey Bataev <[email protected]>
1 parent 734da15 commit 2c896c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/IVDescriptors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ RecurrenceDescriptor::isFindLastIVPattern(Loop *Loop, PHINode *OrigPhi,
707707
else
708708
return InstDesc(false, I);
709709

710-
auto IsIncreasingLoopInduction = [&SE, &Loop](Value *V) {
710+
auto IsIncreasingLoopInduction = [&](Value *V) {
711711
if (!SE)
712712
return false;
713713

0 commit comments

Comments
 (0)