[llvm] r251614 - Fix an unused variable warning which broke the clang-cmake-mips builder
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 28 21:21:49 PDT 2015
Author: reames
Date: Wed Oct 28 23:21:49 2015
New Revision: 251614
URL: http://llvm.org/viewvc/llvm-project?rev=251614&view=rev
Log:
Fix an unused variable warning which broke the clang-cmake-mips builder
Modified:
llvm/trunk/lib/Analysis/LazyValueInfo.cpp
Modified: llvm/trunk/lib/Analysis/LazyValueInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LazyValueInfo.cpp?rev=251614&r1=251613&r2=251614&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LazyValueInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/LazyValueInfo.cpp Wed Oct 28 23:21:49 2015
@@ -505,7 +505,7 @@ static LVILatticeVal getFromRangeMetadat
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);
}
More information about the llvm-commits
mailing list