[InstCombine] clean up; NFC

llvm-svn: 268099
This commit is contained in:
Sanjay Patel 2016-04-29 20:54:56 +00:00
parent 909b277845
commit 9190b4add8
1 changed files with 1 additions and 1 deletions

View File

@ -898,7 +898,7 @@ Value *InstCombiner::SimplifyShrShlDemandedBits(Instruction *Shr,
Value *InstCombiner::SimplifyDemandedVectorElts(Value *V, APInt DemandedElts,
APInt &UndefElts,
unsigned Depth) {
unsigned VWidth = cast<VectorType>(V->getType())->getNumElements();
unsigned VWidth = V->getType()->getVectorNumElements();
APInt EltMask(APInt::getAllOnesValue(VWidth));
assert((DemandedElts & ~EltMask) == 0 && "Invalid DemandedElts!");