From a809acec40d974e165171a9f60a05060d84d18a4 Mon Sep 17 00:00:00 2001 From: Michael Liao Date: Thu, 7 Jan 2016 07:58:25 +0000 Subject: Modernize to range-based loop llvm-svn: 257037 --- llvm/utils/KillTheDoctor/KillTheDoctor.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'llvm/utils/KillTheDoctor/KillTheDoctor.cpp') diff --git a/llvm/utils/KillTheDoctor/KillTheDoctor.cpp b/llvm/utils/KillTheDoctor/KillTheDoctor.cpp index fae3b1a8b9d..6c2242aafdf 100644 --- a/llvm/utils/KillTheDoctor/KillTheDoctor.cpp +++ b/llvm/utils/KillTheDoctor/KillTheDoctor.cpp @@ -328,11 +328,9 @@ int main(int argc, char **argv) { if (TraceExecution) errs() << ToolName << ": Found Program: " << ProgramToRun << '\n'; - for (std::vector::iterator i = Argv.begin(), - e = Argv.end(); - i != e; ++i) { + for (const std::string &Arg : Argv) { CommandLine.push_back(' '); - CommandLine.append(*i); + CommandLine.append(Arg); } if (TraceExecution) -- cgit v1.2.3