mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
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:
@@ -1635,9 +1635,10 @@ static SmallVector<std::pair<PointerBounds, PointerBounds>, 4> expandBounds(
|
|||||||
PointerChecks.begin(), PointerChecks.end(),
|
PointerChecks.begin(), PointerChecks.end(),
|
||||||
std::back_inserter(ChecksWithBounds),
|
std::back_inserter(ChecksWithBounds),
|
||||||
[&](const RuntimePointerChecking::PointerCheck &Check) {
|
[&](const RuntimePointerChecking::PointerCheck &Check) {
|
||||||
return std::make_pair(
|
PointerBounds
|
||||||
expandBounds(Check.first, L, Loc, Exp, SE, PtrRtChecking),
|
First = expandBounds(Check.first, L, Loc, Exp, SE, PtrRtChecking),
|
||||||
expandBounds(Check.second, L, Loc, Exp, SE, PtrRtChecking));
|
Second = expandBounds(Check.second, L, Loc, Exp, SE, PtrRtChecking);
|
||||||
|
return std::make_pair(First, Second);
|
||||||
});
|
});
|
||||||
|
|
||||||
return ChecksWithBounds;
|
return ChecksWithBounds;
|
||||||
|
Reference in New Issue
Block a user