mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
This commit is contained in:
@@ -675,8 +675,8 @@ static Words::iterator matchTypeNameFromBackWithSpecialCases(
|
||||
|
||||
if (shortenedNameWord != newShortenedNameWord) {
|
||||
unsigned targetSize = newShortenedNameWord.size();
|
||||
auto newIter = llvm::make_reverse_iterator(WordIterator(name,
|
||||
targetSize));
|
||||
auto newIter = std::make_reverse_iterator(WordIterator(name,
|
||||
targetSize));
|
||||
#ifndef NDEBUG
|
||||
while (nameWordRevIter.base().getPosition() > targetSize)
|
||||
++nameWordRevIter;
|
||||
|
||||
Reference in New Issue
Block a user