mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +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(),
|
||||
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;
|
||||
|
Reference in New Issue
Block a user