Fix an unused variable warning which broke the clang-cmake-mips builder
[oota-llvm.git] / lib / Analysis / LazyValueInfo.cpp
index 3e739c42a02e929de13b2d3feb436966733261bf..a4e02686ecd31906fcb464d311f8db05d34aa50e 100644 (file)
@@ -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<IntegerType>(BBI->getType())) {
+      if (isa<IntegerType>(BBI->getType())) {
         ConstantRange Result = getConstantRangeFromMetadata(*Ranges);
         return LVILatticeVal::getRange(Result);
       }