From 75296901f7bf272fa79b1a62388aaa11bcfa5e2b Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Fri, 21 Aug 2015 19:23:21 +0000 Subject: [PATCH] Fix 'unused variable' warning in NASSERTS build llvm-svn: 245723 --- polly/lib/CodeGen/BlockGenerators.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/polly/lib/CodeGen/BlockGenerators.cpp b/polly/lib/CodeGen/BlockGenerators.cpp index 82082cbdbe13..ca9fcd88507a 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) {