From c54b1c8b4d9cbac6abe102e9a80d596351490faf Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 15 Jun 2017 22:03:06 +0000 Subject: [PATCH] Try to fix MSVC build. llvm-svn: 305514 --- lld/ELF/Writer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 657bad243574..b414792c40a7 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -1009,7 +1009,7 @@ findOrphanPos(std::vector::iterator B, break; } auto J = std::find_if( - make_reverse_iterator(I), make_reverse_iterator(B), + llvm::make_reverse_iterator(I), llvm::make_reverse_iterator(B), [](BaseCommand *Cmd) { return isa(Cmd); }); I = J.base(); while (I != E && shouldSkip(*I)) @@ -1040,8 +1040,8 @@ template void Writer::sortSections() { return isa(Base); }; I = std::find_if(I, E, IsSection); - E = std::find_if(make_reverse_iterator(E), make_reverse_iterator(I), - IsSection) + E = std::find_if(llvm::make_reverse_iterator(E), + llvm::make_reverse_iterator(I), IsSection) .base(); std::stable_sort(I, E, compareSections); return;