Fixed unused variable warning.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 12 Sep 2015 14:00:17 +0000 (14:00 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 12 Sep 2015 14:00:17 +0000 (14:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247505 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/InstCombine/InstCombineCalls.cpp

index b0d898738a58da6aba6d2159da2cbcbdef377b2d..c5f92a536b7ce24ceb9ba101da990cbfa156a347 100644 (file)
@@ -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<ConstantAggregateZero>(Arg))
+    if (isa<ConstantAggregateZero>(Arg))
       return ReplaceInstUsesWith(*II, ConstantAggregateZero::get(RetType));
 
-    if (auto CIHalf = dyn_cast<ConstantDataVector>(Arg)) {
+    if (isa<ConstantDataVector>(Arg)) {
       auto VectorHalfAsShorts = Arg;
       if (RetWidth < ArgWidth) {
         SmallVector<int, 8> SubVecMask;