LoopVectorize.cpp: Suppress a warning. [-Wunused-variable]
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 4 Dec 2012 00:49:34 +0000 (00:49 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 4 Dec 2012 00:49:34 +0000 (00:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169195 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/LoopVectorize.cpp

index b720c9733e01f15190349b38bb1adfaa4d53dacb..0e33228cc938bb79a584a368a9faeb0b65866a1d 100644 (file)
@@ -1495,9 +1495,9 @@ bool LoopVectorizationLegality::canVectorize() {
   }
 
   // We need to have a loop header.
-  BasicBlock *Header = TheLoop->getHeader();
   BasicBlock *Latch = TheLoop->getLoopLatch();
-  DEBUG(dbgs() << "LV: Found a loop: " << Header->getName() << "\n");
+  DEBUG(dbgs() << "LV: Found a loop: " <<
+        TheLoop->getHeader()->getName() << "\n");
 
   // ScalarEvolution needs to be able to find the exit count.
   const SCEV *ExitCount = SE->getExitCount(TheLoop, Latch);