Skip to content

Commit 5ce7bf9

Browse files
committed
Use std::reverse_iterator_range
We're using c++14, so no need to use the llvm:: copy of this. The llvm version is going away, so this fixes build errors on the "next" branch.
1 parent 5a5dd13 commit 5ce7bf9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/swift/SIL/SILInstruction.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,12 @@ SILInstructionResultArray::end() const {
277277

278278
inline SILInstructionResultArray::reverse_iterator
279279
SILInstructionResultArray::rbegin() const {
280-
return llvm::make_reverse_iterator(end());
280+
return std::make_reverse_iterator(end());
281281
}
282282

283283
inline SILInstructionResultArray::reverse_iterator
284284
SILInstructionResultArray::rend() const {
285-
return llvm::make_reverse_iterator(begin());
285+
return std::make_reverse_iterator(begin());
286286
}
287287

288288
inline SILInstructionResultArray::range

lib/Basic/StringExtras.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,8 +675,8 @@ static Words::iterator matchTypeNameFromBackWithSpecialCases(
675675

676676
if (shortenedNameWord != newShortenedNameWord) {
677677
unsigned targetSize = newShortenedNameWord.size();
678-
auto newIter = llvm::make_reverse_iterator(WordIterator(name,
679-
targetSize));
678+
auto newIter = std::make_reverse_iterator(WordIterator(name,
679+
targetSize));
680680
#ifndef NDEBUG
681681
while (nameWordRevIter.base().getPosition() > targetSize)
682682
++nameWordRevIter;

0 commit comments

Comments
 (0)