diff --git a/lib/Analysis/LoopAccessAnalysis.cpp b/lib/Analysis/LoopAccessAnalysis.cpp index 99b5aebaeabc..7fe2c999ddc7 100644 --- a/lib/Analysis/LoopAccessAnalysis.cpp +++ b/lib/Analysis/LoopAccessAnalysis.cpp @@ -1635,9 +1635,10 @@ static SmallVector, 4> expandBounds( PointerChecks.begin(), PointerChecks.end(), std::back_inserter(ChecksWithBounds), [&](const RuntimePointerChecking::PointerCheck &Check) { - return std::make_pair( - expandBounds(Check.first, L, Loc, Exp, SE, PtrRtChecking), - expandBounds(Check.second, L, Loc, Exp, SE, PtrRtChecking)); + PointerBounds + First = expandBounds(Check.first, L, Loc, Exp, SE, PtrRtChecking), + Second = expandBounds(Check.second, L, Loc, Exp, SE, PtrRtChecking); + return std::make_pair(First, Second); }); return ChecksWithBounds;