diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2015-09-12 14:00:17 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2015-09-12 14:00:17 +0000 |
commit | 48ffca0f47ad02319e6a7d604ac2aa44fce89d72 (patch) | |
tree | 077fc5898d5a3083e49df30cf833b294bfaf108e /llvm/lib/Transforms | |
parent | 20c607b1100ef3eb7ec66b6f5c049a1060ee8762 (diff) | |
download | bcm5719-llvm-48ffca0f47ad02319e6a7d604ac2aa44fce89d72.tar.gz bcm5719-llvm-48ffca0f47ad02319e6a7d604ac2aa44fce89d72.zip |
Fixed unused variable warning.
llvm-svn: 247505
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp index b0d898738a5..c5f92a536b7 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/llvm/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<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; |