From 3141d2db037bb3c31a1efd50118df45c1aebbb51 Mon Sep 17 00:00:00 2001 From: Nadav Rotem Date: Thu, 18 Oct 2012 06:09:21 +0000 Subject: [PATCH] remove unused variable to fix a warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166170 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Vectorize/LoopVectorize.cpp | 3 +-- 1 file changed, 1 insertion(+), 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"); -- 2.34.1