[polly] r245723 - Fix 'unused variable' warning in NASSERTS build

Tobias Grosser via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 21 12:23:21 PDT 2015


Author: grosser
Date: Fri Aug 21 14:23:21 2015
New Revision: 245723

URL: http://llvm.org/viewvc/llvm-project?rev=245723&view=rev
Log:
Fix 'unused variable' warning in NASSERTS build

Modified:
    polly/trunk/lib/CodeGen/BlockGenerators.cpp

Modified: polly/trunk/lib/CodeGen/BlockGenerators.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/BlockGenerators.cpp?rev=245723&r1=245722&r2=245723&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/BlockGenerators.cpp (original)
+++ polly/trunk/lib/CodeGen/BlockGenerators.cpp Fri Aug 21 14:23:21 2015
@@ -1104,9 +1104,9 @@ void RegionGenerator::generateScalarStor
                                            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) {
 




More information about the llvm-commits mailing list