From: Simon Pilgrim Date: Sat, 12 Sep 2015 14:00:17 +0000 (+0000) Subject: Fixed unused variable warning. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=427fe356da2000b93dd986ee57dfb15ff44b5730;p=oota-llvm.git Fixed unused variable warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247505 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/InstCombine/InstCombineCalls.cpp b/lib/Transforms/InstCombine/InstCombineCalls.cpp index b0d898738a5..c5f92a536b7 100644 --- a/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -825,10 +825,10 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) { "CVTPH2PS output type should be 32-bit float vector"); // Constant folding: Convert to generic half to single conversion. - if (auto CIZero = dyn_cast(Arg)) + if (isa(Arg)) return ReplaceInstUsesWith(*II, ConstantAggregateZero::get(RetType)); - if (auto CIHalf = dyn_cast(Arg)) { + if (isa(Arg)) { auto VectorHalfAsShorts = Arg; if (RetWidth < ArgWidth) { SmallVector SubVecMask;