diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-09-06 00:37:24 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-09-06 00:37:24 +0000 |
commit | 8227b9f69c4e1ff8d05fabe08e62f3c91ee42ade (patch) | |
tree | eb86a5b1a0b152ec121a7ecce0945b6cd05767c3 /llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp | |
parent | 37d42ecafff736cc83f3a3eaa0ecd7c56eaa1bc6 (diff) | |
download | bcm5719-llvm-8227b9f69c4e1ff8d05fabe08e62f3c91ee42ade.tar.gz bcm5719-llvm-8227b9f69c4e1ff8d05fabe08e62f3c91ee42ade.zip |
Use type helper functions.
llvm-svn: 190113
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp b/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp index 8877b99c31b..805c5d24430 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp +++ b/llvm/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()))); |