summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2015-08-21 19:23:21 +0000
committerTobias Grosser <tobias@grosser.es>2015-08-21 19:23:21 +0000
commit75296901f7bf272fa79b1a62388aaa11bcfa5e2b (patch)
tree79ccc3f1d5c4db065cb0bd80d27da172883e1296
parent55217439181a9407f6237b5f146dfe08fa8bc59e (diff)
downloadbcm5719-llvm-75296901f7bf272fa79b1a62388aaa11bcfa5e2b.tar.gz
bcm5719-llvm-75296901f7bf272fa79b1a62388aaa11bcfa5e2b.zip
Fix 'unused variable' warning in NASSERTS build
llvm-svn: 245723
-rw-r--r--polly/lib/CodeGen/BlockGenerators.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/polly/lib/CodeGen/BlockGenerators.cpp b/polly/lib/CodeGen/BlockGenerators.cpp
index 82082cbdbe1..ca9fcd88507 100644
--- a/polly/lib/CodeGen/BlockGenerators.cpp
+++ b/polly/lib/CodeGen/BlockGenerators.cpp
@@ -1104,9 +1104,9 @@ void RegionGenerator::generateScalarStores(ScopStmt &Stmt, BasicBlock *BB,
ValueMapT &GlobalMap) {
const Region &R = Stmt.getParent()->getRegion();
- Region *StmtR = Stmt.getRegion();
- assert(StmtR && "Block statements need to use the generateScalarStores() "
- "function in the BlockGenerator");
+ assert(Stmt.getRegion() &&
+ "Block statements need to use the generateScalarStores() "
+ "function in the BlockGenerator");
for (MemoryAccess *MA : Stmt) {
OpenPOWER on IntegriCloud