From: Philip Reames Date: Thu, 29 Oct 2015 04:21:49 +0000 (+0000) Subject: Fix an unused variable warning which broke the clang-cmake-mips builder X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ebc1946bf46b292ae57932fe380dde67b02177d7;p=oota-llvm.git Fix an unused variable warning which broke the clang-cmake-mips builder git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251614 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/LazyValueInfo.cpp b/lib/Analysis/LazyValueInfo.cpp index 3e739c42a02..a4e02686ecd 100644 --- a/lib/Analysis/LazyValueInfo.cpp +++ b/lib/Analysis/LazyValueInfo.cpp @@ -505,7 +505,7 @@ static LVILatticeVal getFromRangeMetadata(Instruction *BBI) { case Instruction::Call: case Instruction::Invoke: if (MDNode *Ranges = BBI->getMetadata(LLVMContext::MD_range)) - if (auto *IType = dyn_cast(BBI->getType())) { + if (isa(BBI->getType())) { ConstantRange Result = getConstantRangeFromMetadata(*Ranges); return LVILatticeVal::getRange(Result); }