From 6dc0050f6d42520ad92e6786551f27ee3f365ecd Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 17 Oct 2012 23:40:15 +0000 Subject: [PATCH] LoopVectorize.cpp: Fix a warning. [-Wunused-variable] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166153 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 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(); LI = &getAnalysis(); - 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);