diff options
Diffstat (limited to 'llvm/lib/TextAPI/TextStub.cpp')
-rw-r--r-- | llvm/lib/TextAPI/TextStub.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<InterfaceFile>( const_cast<InterfaceFile *>(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<InterfaceFile>(const_cast<InterfaceFile *>(*Iter))); + std::shared_ptr<InterfaceFile>(const_cast<InterfaceFile *>(FI))); if (YAMLIn.error()) return make_error<StringError>(Ctx.ErrorMessage, YAMLIn.error()); |