From cfc74024195e3be44d023a505d80b7e19f4041fc Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 16 Sep 2021 08:46:26 -0700 Subject: [llvm] Use drop_begin (NFC) --- llvm/lib/TextAPI/TextStub.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/TextAPI/TextStub.cpp') diff --git a/llvm/lib/TextAPI/TextStub.cpp b/llvm/lib/TextAPI/TextStub.cpp index 5d85342..b64f19a 100644 --- a/llvm/lib/TextAPI/TextStub.cpp +++ b/llvm/lib/TextAPI/TextStub.cpp @@ -1121,9 +1121,9 @@ TextAPIReader::get(MemoryBufferRef InputBuffer) { auto File = std::unique_ptr( const_cast(Files.front())); - for (auto Iter = std::next(Files.begin()); Iter != Files.end(); ++Iter) + for (const InterfaceFile *FI : llvm::drop_begin(Files)) File->addDocument( - std::shared_ptr(const_cast(*Iter))); + std::shared_ptr(const_cast(FI))); if (YAMLIn.error()) return make_error(Ctx.ErrorMessage, YAMLIn.error()); -- cgit v1.1