summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ScalarEvolution.cpp
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2017-04-24 00:46:40 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2017-04-24 00:46:40 +0000
commit25972aa82e41335ebcc95e7f5dc28d55a9dc26fe (patch)
tree7e17d20f7ac120d57fe810ce1da1493d28a1dbba /llvm/lib/Analysis/ScalarEvolution.cpp
parent8919303b0a2742dee944cd33bc716d0ac5292a1f (diff)
downloadbcm5719-llvm-25972aa82e41335ebcc95e7f5dc28d55a9dc26fe.tar.gz
bcm5719-llvm-25972aa82e41335ebcc95e7f5dc28d55a9dc26fe.zip
Fix unused variables / fields warnings in release builds
llvm-svn: 301151
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index 390e495b92b..a5234b4e9b9 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -6098,6 +6098,11 @@ Optional<ScalarEvolution::ExitLimit>
ScalarEvolution::ExitLimitCache::find(const Loop *L, Value *ExitCond,
BasicBlock *TBB, BasicBlock *FBB,
bool ControlsExit, bool AllowPredicates) {
+ (void)this->L;
+ (void)this->TBB;
+ (void)this->FBB;
+ (void)this->AllowPredicates;
+
assert(this->L == L && this->TBB == TBB && this->FBB == FBB &&
this->AllowPredicates == AllowPredicates &&
"Variance in assumed invariant key components!");
@@ -6118,6 +6123,7 @@ void ScalarEvolution::ExitLimitCache::insert(const Loop *L, Value *ExitCond,
auto InsertResult = TripCountMap.insert({{ExitCond, ControlsExit}, EL});
assert(InsertResult.second && "Expected successful insertion!");
+ (void)InsertResult;
}
ScalarEvolution::ExitLimit ScalarEvolution::computeExitLimitFromCondCached(
OpenPOWER on IntegriCloud