Fix inelegant initialization.
authorStuart Hastings <stuart@apple.com>
Wed, 18 May 2011 15:54:26 +0000 (15:54 +0000)
committerStuart Hastings <stuart@apple.com>
Wed, 18 May 2011 15:54:26 +0000 (15:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131538 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/InstCombine/InstCombineCalls.cpp

index 344fc4ffd8aaa8d790a732740e67545babf3de95..fbbc9520cf983c3a7ca78f9ca3e530de8ac74fc4 100644 (file)
@@ -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,