Skip to content

Commit 7d2a395

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

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

714-
auto IsIncreasingLoopInduction = [&SE, &Loop](Value *V) {
714+
auto IsIncreasingLoopInduction = [&](Value *V) {
715715
if (!SE)
716716
return false;
717717

0 commit comments

Comments
 (0)