diff options
author | Stuart Hastings <stuart@apple.com> | 2011-05-18 15:54:26 +0000 |
---|---|---|
committer | Stuart Hastings <stuart@apple.com> | 2011-05-18 15:54:26 +0000 |
commit | 728f6260b9ec5219342936cff1d5fe16d38bb3e0 (patch) | |
tree | 9dcb224b21f233182425fe87aef41d8414eddb57 /llvm/lib/Transforms | |
parent | bbdcd17d4415b120bc93c88129629b120135a9bf (diff) | |
download | bcm5719-llvm-728f6260b9ec5219342936cff1d5fe16d38bb3e0.tar.gz bcm5719-llvm-728f6260b9ec5219342936cff1d5fe16d38bb3e0.zip |
Fix inelegant initialization.
llvm-svn: 131538
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp index 344fc4ffd8a..fbbc9520cf9 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -598,8 +598,7 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) { unsigned VWidth = cast<VectorType>(II->getArgOperand(0)->getType())->getNumElements(); unsigned LowHalfElts = VWidth / 2; - APInt InputDemandedElts(VWidth, 0); - InputDemandedElts = InputDemandedElts.getBitsSet(VWidth, 0, LowHalfElts); + APInt InputDemandedElts(APInt::getBitsSet(VWidth, 0, LowHalfElts)); APInt UndefElts(VWidth, 0); if (Value *TmpV = SimplifyDemandedVectorElts(II->getArgOperand(0), InputDemandedElts, |