diff options
author | Jay Foad <jay.foad@gmail.com> | 2010-12-01 08:53:58 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2010-12-01 08:53:58 +0000 |
commit | 7a874ddda037349184fbeb22838cc11a1a9bb78f (patch) | |
tree | 6924d1b7e8d91f2ae2c3effc2f3bb15ed5d86d44 /lib/Transforms/InstCombine/InstCombineVectorOps.cpp | |
parent | ce2b68fb5444e712da14d214994c05bd231f221f (diff) |
PR5207: Rename overloaded APInt methods set(), clear(), flip() to
setAllBits(), setBit(unsigned), etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120564 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombineVectorOps.cpp')
-rw-r--r-- | lib/Transforms/InstCombine/InstCombineVectorOps.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineVectorOps.cpp b/lib/Transforms/InstCombine/InstCombineVectorOps.cpp index af072b94e3..4aa1328f13 100644 --- a/lib/Transforms/InstCombine/InstCombineVectorOps.cpp +++ b/lib/Transforms/InstCombine/InstCombineVectorOps.cpp @@ -160,7 +160,7 @@ Instruction *InstCombiner::visitExtractElementInst(ExtractElementInst &EI) { if (EI.getOperand(0)->hasOneUse() && VectorWidth != 1) { APInt UndefElts(VectorWidth, 0); APInt DemandedMask(VectorWidth, 0); - DemandedMask.set(IndexVal); + DemandedMask.setBit(IndexVal); if (Value *V = SimplifyDemandedVectorElts(EI.getOperand(0), DemandedMask, UndefElts)) { EI.setOperand(0, V); |