summaryrefslogtreecommitdiff
path: root/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-09-06 00:37:24 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-09-06 00:37:24 +0000
commit4598bd53ab89c3d120ad8249abbfdc7e2d64d291 (patch)
treef9e741e33a79b03ecd1d3961f531018ce421ed66 /lib/Transforms/InstCombine/InstCombineVectorOps.cpp
parentce8e4647bf4fff92bf5855b494461a039200b418 (diff)
downloadllvm-4598bd53ab89c3d120ad8249abbfdc7e2d64d291.tar.gz
llvm-4598bd53ab89c3d120ad8249abbfdc7e2d64d291.tar.bz2
llvm-4598bd53ab89c3d120ad8249abbfdc7e2d64d291.tar.xz
Use type helper functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190113 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombineVectorOps.cpp')
-rw-r--r--lib/Transforms/InstCombine/InstCombineVectorOps.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineVectorOps.cpp b/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
index 8877b99c31..805c5d2443 100644
--- a/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
+++ b/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
@@ -294,7 +294,7 @@ static bool CollectSingleShuffleElements(Value *V, Value *LHS, Value *RHS,
SmallVectorImpl<Constant*> &Mask) {
assert(V->getType() == LHS->getType() && V->getType() == RHS->getType() &&
"Invalid CollectSingleShuffleElements");
- unsigned NumElts = cast<VectorType>(V->getType())->getNumElements();
+ unsigned NumElts = V->getType()->getVectorNumElements();
if (isa<UndefValue>(V)) {
Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext())));