diff options
Diffstat (limited to 'llvm/utils/KillTheDoctor/KillTheDoctor.cpp')
-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) |