From 8b3ac7fec597dfc0ca6fe665a06eacf544720b48 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Sat, 10 Oct 2015 00:45:24 +0000 Subject: [PATCH] [llvm-rtdyld] Use range-based loop. NFC. llvm-svn: 249923 --- tools/llvm-rtdyld/llvm-rtdyld.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/llvm-rtdyld/llvm-rtdyld.cpp b/tools/llvm-rtdyld/llvm-rtdyld.cpp index d8699505f59..54b5aa03d7d 100644 --- a/tools/llvm-rtdyld/llvm-rtdyld.cpp +++ b/tools/llvm-rtdyld/llvm-rtdyld.cpp @@ -625,10 +625,10 @@ static int linkAndVerify() { // If we don't have any input files, read from stdin. if (!InputFileList.size()) InputFileList.push_back("-"); - for(unsigned i = 0, e = InputFileList.size(); i != e; ++i) { + for (auto &Filename : InputFileList) { // Load the input memory buffer. ErrorOr> InputBuffer = - MemoryBuffer::getFileOrSTDIN(InputFileList[i]); + MemoryBuffer::getFileOrSTDIN(Filename); if (std::error_code EC = InputBuffer.getError()) return Error("unable to read input: '" + EC.message() + "'");