summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorMichael Liao <michael.liao@intel.com>2016-01-07 07:58:25 +0000
committerMichael Liao <michael.liao@intel.com>2016-01-07 07:58:25 +0000
commita809acec40d974e165171a9f60a05060d84d18a4 (patch)
tree5d15998e0c2df118d9318ba3fee704a997549213 /llvm/utils
parent3939b690f6b47860140292e89f1c6f506c20cb19 (diff)
downloadbcm5719-llvm-a809acec40d974e165171a9f60a05060d84d18a4.tar.gz
bcm5719-llvm-a809acec40d974e165171a9f60a05060d84d18a4.zip
Modernize to range-based loop
llvm-svn: 257037
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/KillTheDoctor/KillTheDoctor.cpp6
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)
OpenPOWER on IntegriCloud