From 427fe356da2000b93dd986ee57dfb15ff44b5730 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sat, 12 Sep 2015 14:00:17 +0000 Subject: [PATCH] Fixed unused variable warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247505 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/InstCombine/InstCombineCalls.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.34.1