LoopAccessAnalysis.cpp: Tweak r243239 to avoid side effects. It caused different emissions between gcc and clang.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243258 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
NAKAMURA Takumi
2015-07-27 01:35:30 +00:00
parent 508c047e71
commit 845a30e5b8

View File

@@ -1635,9 +1635,10 @@ static SmallVector<std::pair<PointerBounds, PointerBounds>, 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;