Skip to content

Commit 33530d8

Browse files
committed
Update reverse_iterator use to match llvm r280032.
1 parent 46d684f commit 33530d8

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)