diff options
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp')
| -rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp b/llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp index b8da4054a44..e82b0d2ab30 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp @@ -229,8 +229,7 @@ Instruction *InstCombiner::FoldPHIArgGEPIntoPHI(PHINode &PN) {    Value *Base = FixedOperands[0];    GetElementPtrInst *NewGEP =  -    GetElementPtrInst::Create(Base, makeArrayRef(FixedOperands.begin() + 1, -                                                 FixedOperands.end())); +    GetElementPtrInst::Create(Base, makeArrayRef(FixedOperands).slice(1));    if (AllInBounds) NewGEP->setIsInBounds();    NewGEP->setDebugLoc(FirstInst->getDebugLoc());    return NewGEP; | 

