OSDN Git Service

LoopVectorize.cpp: Fix a warning. [-Wunused-variable]
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 17 Oct 2012 23:40:15 +0000 (23:40 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 17 Oct 2012 23:40:15 +0000 (23:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166153 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/LoopVectorize.cpp

index b256155..f84e392 100644 (file)
@@ -195,9 +195,8 @@ struct LoopVectorize : public LoopPass {
     DL = getAnalysisIfAvailable<DataLayout>();
     LI = &getAnalysis<LoopInfo>();
 
-    BasicBlock *Header = L->getHeader();
     DEBUG(dbgs() << "LV: Checking a loop in \"" <<
-          Header->getParent()->getName() << "\"\n");
+          L->getHeader()->getParent()->getName() << "\"\n");
 
     // Check if it is legal to vectorize the loop.
     LoopVectorizationLegality LVL(L, SE, DL);