summaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-10-18 06:09:21 +0000
committerNadav Rotem <nrotem@apple.com>2012-10-18 06:09:21 +0000
commit3141d2db037bb3c31a1efd50118df45c1aebbb51 (patch)
tree485cb676f2e4757a2eb03854199558050fe1875d /lib/Transforms
parente4e00f2cfecea7649dee554f815531084347c1ef (diff)
remove unused variable to fix a warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166170 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-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 6ce303cfb54..e3b8fc7be9f 100644
--- a/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -410,9 +410,8 @@ void SingleBlockLoopVectorizer::createEmptyLoop() {
BasicBlock *ExitBlock = Orig->getExitBlock();
assert(ExitBlock && "Must have an exit block");
- BasicBlock *ScalarBody = Orig->getHeader();
assert(Orig->getNumBlocks() == 1 && "Invalid loop");
- assert(ScalarBody && BypassBlock && "Invalid loop structure");
+ assert(BypassBlock && "Invalid loop structure");
BasicBlock *VectorPH =
BypassBlock->splitBasicBlock(BypassBlock->getTerminator(), "vector.ph");