summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-10-17 23:40:15 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-10-17 23:40:15 +0000
commit6dc0050f6d42520ad92e6786551f27ee3f365ecd (patch)
treedf6bb302ff1078b67c2cc9acf44100c2402b266c
parent6e0c2b36d6dfe66ec394ad050f4a08252975b5ef (diff)
LoopVectorize.cpp: Fix a warning. [-Wunused-variable]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166153 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Vectorize/LoopVectorize.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp
index b256155ebaf..f84e3925f1d 100644
--- a/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -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);