diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2015-07-27 01:35:30 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2015-07-27 01:35:30 +0000 |
commit | 94abbbd6abc411697a346c2f36f67d5ff3f38f27 (patch) | |
tree | 3214869f252f69e919485442cad9ad976e8a1b16 /llvm/lib/Analysis/LoopAccessAnalysis.cpp | |
parent | e837e6c7f7fe50d4dc5994038a732d919b0713c7 (diff) | |
download | bcm5719-llvm-94abbbd6abc411697a346c2f36f67d5ff3f38f27.tar.gz bcm5719-llvm-94abbbd6abc411697a346c2f36f67d5ff3f38f27.zip |
LoopAccessAnalysis.cpp: Tweak r243239 to avoid side effects. It caused different emissions between gcc and clang.
llvm-svn: 243258
Diffstat (limited to 'llvm/lib/Analysis/LoopAccessAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/LoopAccessAnalysis.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp index 99b5aebaeab..7fe2c999ddc 100644 --- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp +++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp @@ -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; |