Fix an unused variable warning which broke the clang-cmake-mips builder
authorPhilip Reames <listmail@philipreames.com>
Thu, 29 Oct 2015 04:21:49 +0000 (04:21 +0000)
committerPhilip Reames <listmail@philipreames.com>
Thu, 29 Oct 2015 04:21:49 +0000 (04:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251614 91177308-0d34-0410-b5e6-96231b3b80d8

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);
       }