mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
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
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user