summaryrefslogtreecommitdiff
path: root/lib/Transforms/Vectorize/LoopVectorize.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms/Vectorize/LoopVectorize.cpp')
-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");