[llvm] r247505 - Fixed unused variable warning.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 12 07:00:17 PDT 2015
Author: rksimon
Date: Sat Sep 12 09:00:17 2015
New Revision: 247505
URL: http://llvm.org/viewvc/llvm-project?rev=247505&view=rev
Log:
Fixed unused variable warning.
Modified:
llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp?rev=247505&r1=247504&r2=247505&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp Sat Sep 12 09:00:17 2015
@@ -825,10 +825,10 @@ Instruction *InstCombiner::visitCallInst
"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;
More information about the llvm-commits
mailing list