diff options
author | Craig Topper <craig.topper@gmail.com> | 2013-07-03 05:11:49 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2013-07-03 05:11:49 +0000 |
commit | f22fd3f7b557a967b1edc1fa9ae770006a39e97c (patch) | |
tree | 2adb341c05cd266b848277bc567e279836a4c95d /lib/CodeGen/Passes.cpp | |
parent | d0a3916e430201d0179c723e4ebdd9bf4f0ee02b (diff) | |
download | llvm-f22fd3f7b557a967b1edc1fa9ae770006a39e97c.tar.gz llvm-f22fd3f7b557a967b1edc1fa9ae770006a39e97c.tar.bz2 llvm-f22fd3f7b557a967b1edc1fa9ae770006a39e97c.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/llvm/trunk@185512 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/Passes.cpp')
-rw-r--r-- | lib/CodeGen/Passes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/Passes.cpp b/lib/CodeGen/Passes.cpp index fc91b57f55..203eec097f 100644 --- a/lib/CodeGen/Passes.cpp +++ b/lib/CodeGen/Passes.cpp @@ -331,7 +331,7 @@ AnalysisID TargetPassConfig::addPass(AnalysisID PassID) { addPass(P); // Ends the lifetime of P. // Add the passes after the pass P if there is any. - for (SmallVector<std::pair<AnalysisID, IdentifyingPassPtr>, 4>::iterator + for (SmallVectorImpl<std::pair<AnalysisID, IdentifyingPassPtr> >::iterator I = Impl->InsertedPasses.begin(), E = Impl->InsertedPasses.end(); I != E; ++I) { if ((*I).first == PassID) { |