diff options
| author | Craig Topper <craig.topper@gmail.com> | 2013-07-04 03:08:24 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2013-07-04 03:08:24 +0000 |
| commit | 09d19efaa147762f84aed55efa7930bb3616a4e5 (patch) | |
| tree | aa7bb1fb61edc7c5f685118ca9e842e37da1f3ad /lib/Driver/Driver.cpp | |
| parent | 8b625a3f7764959d0a2ac3cd860ce1e168e0fc9b (diff) | |
| download | clang-09d19efaa147762f84aed55efa7930bb3616a4e5.tar.gz clang-09d19efaa147762f84aed55efa7930bb3616a4e5.tar.bz2 clang-09d19efaa147762f84aed55efa7930bb3616a4e5.tar.xz | |
Use SmallVectorImpl instead of SmallVector for iterators and references to avoid specifying the vector size unnecessarily.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185610 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
| -rw-r--r-- | lib/Driver/Driver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index 135af0404b..3f3d001449 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -1077,7 +1077,7 @@ void Driver::BuildActions(const ToolChain &TC, const DerivedArgList &Args, // Build the pipeline for this file. OwningPtr<Action> Current(new InputAction(*InputArg, InputType)); - for (llvm::SmallVector<phases::ID, phases::MaxNumberOfPhases>::iterator + for (SmallVectorImpl<phases::ID>::iterator i = PL.begin(), e = PL.end(); i != e; ++i) { phases::ID Phase = *i; |
