[llvm] r243258 - LoopAccessAnalysis.cpp: Tweak r243239 to avoid side effects. It caused different emissions between gcc and clang.
NAKAMURA Takumi
geek4civic at gmail.com
Sun Jul 26 18:35:30 PDT 2015
Author: chapuni
Date: Sun Jul 26 20:35:30 2015
New Revision: 243258
URL: http://llvm.org/viewvc/llvm-project?rev=243258&view=rev
Log:
LoopAccessAnalysis.cpp: Tweak r243239 to avoid side effects. It caused different emissions between gcc and clang.
Modified:
llvm/trunk/lib/Analysis/LoopAccessAnalysis.cpp
Modified: llvm/trunk/lib/Analysis/LoopAccessAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LoopAccessAnalysis.cpp?rev=243258&r1=243257&r2=243258&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LoopAccessAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/LoopAccessAnalysis.cpp Sun Jul 26 20:35:30 2015
@@ -1635,9 +1635,10 @@ static SmallVector<std::pair<PointerBoun
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;
More information about the llvm-commits
mailing list