summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Hastings <stuart@apple.com>2011-05-18 15:54:26 +0000
committerStuart Hastings <stuart@apple.com>2011-05-18 15:54:26 +0000
commitd116611e0a884e53ea1524de3a1306c1eb447228 (patch)
treeec3b5bd2c5b2a67c92a51d6d9b6ae3567c7e9d46
parent657d1bed2368ab0355ddf69acd737a43d0bfabcf (diff)
downloadllvm-d116611e0a884e53ea1524de3a1306c1eb447228.tar.gz
llvm-d116611e0a884e53ea1524de3a1306c1eb447228.tar.bz2
llvm-d116611e0a884e53ea1524de3a1306c1eb447228.tar.xz
Fix inelegant initialization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131538 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/InstCombine/InstCombineCalls.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineCalls.cpp b/lib/Transforms/InstCombine/InstCombineCalls.cpp
index 344fc4ffd8..fbbc9520cf 100644
--- a/lib/Transforms/InstCombine/InstCombineCalls.cpp
+++ b/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,