diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2015-09-19 21:36:51 +0000 | 
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2015-09-19 21:36:51 +0000 | 
| commit | fb80f961df53dd18b033e5f839fa2942cfae91ed (patch) | |
| tree | 5c1fbae9804f235f2b29ac7ddf186e0caac91a9d /clang | |
| parent | a5f0f758d343baa277c15d04b578b574189fb078 (diff) | |
| download | bcm5719-llvm-fb80f961df53dd18b033e5f839fa2942cfae91ed.tar.gz bcm5719-llvm-fb80f961df53dd18b033e5f839fa2942cfae91ed.zip  | |
Convert two loops to range-based loops. No behavior change.
llvm-svn: 248100
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/lib/Driver/Driver.cpp | 8 | 
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index af740fc5b4c..2f58c42a63b 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -951,8 +951,8 @@ static bool ContainsCompileOrAssembleAction(const Action *A) {        isa<AssembleJobAction>(A))      return true; -  for (Action::const_iterator it = A->begin(), ie = A->end(); it != ie; ++it) -    if (ContainsCompileOrAssembleAction(*it)) +  for (const Action *Input : *A) +    if (ContainsCompileOrAssembleAction(Input))        return true;    return false; @@ -993,9 +993,7 @@ void Driver::BuildUniversalActions(const ToolChain &TC, DerivedArgList &Args,    // Add in arch bindings for every top level action, as well as lipo and    // dsymutil steps if needed. -  for (unsigned i = 0, e = SingleActions.size(); i != e; ++i) { -    Action *Act = SingleActions[i]; - +  for (Action* Act : SingleActions) {      // Make sure we can lipo this kind of output. If not (and it is an actual      // output) then we disallow, since we can't create an output file with the      // right name without overwriting it. We could remove this oddity by just  | 

