diff options
author | Michael Liao <michael.liao@intel.com> | 2016-01-07 07:58:25 +0000 |
---|---|---|
committer | Michael Liao <michael.liao@intel.com> | 2016-01-07 07:58:25 +0000 |
commit | a809acec40d974e165171a9f60a05060d84d18a4 (patch) | |
tree | 5d15998e0c2df118d9318ba3fee704a997549213 /llvm | |
parent | 3939b690f6b47860140292e89f1c6f506c20cb19 (diff) | |
download | bcm5719-llvm-a809acec40d974e165171a9f60a05060d84d18a4.tar.gz bcm5719-llvm-a809acec40d974e165171a9f60a05060d84d18a4.zip |
Modernize to range-based loop
llvm-svn: 257037
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/utils/KillTheDoctor/KillTheDoctor.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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<std::string>::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) |