Skip to content

Commit 872276e

Browse files
committed
Update reverse_iterator use to match llvm r280032.
(cherry picked from commit 33530d8)
1 parent a7633f6 commit 872276e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/SILOptimizer/Mandatory/GuaranteedARCOpts.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ struct GuaranteedARCOptsVisitor
3232

3333
static SILBasicBlock::reverse_iterator
3434
getPrevReverseIterator(SILInstruction *I) {
35-
auto Iter = std::next(I->getIterator());
36-
return std::next(SILBasicBlock::reverse_iterator(Iter));
35+
return std::next(I->getIterator().getReverse());
3736
}
3837

3938
bool GuaranteedARCOptsVisitor::visitDestroyAddrInst(DestroyAddrInst *DAI) {

0 commit comments

Comments
 (0)