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:
Ben Langmuir
2022-02-24 13:49:28 -08:00
parent 5a5dd13ca1
commit 5ce7bf9c18
2 changed files with 4 additions and 4 deletions

View File

@@ -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;