Skip to content

Commit 8e9d053

Browse files
Modified lambda to capture all external variables by reference
Co-authored-by: Alexey Bataev <[email protected]>
1 parent b38c8ba commit 8e9d053

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
@@ -709,7 +709,7 @@ RecurrenceDescriptor::isFindLastIVPattern(Loop *Loop, PHINode *OrigPhi,
709709
else
710710
return InstDesc(false, I);
711711

712-
auto IsIncreasingLoopInduction = [&SE, &Loop](Value *V) {
712+
auto IsIncreasingLoopInduction = [&](Value *V) {
713713
if (!SE)
714714
return false;
715715

0 commit comments

Comments
 (0)