Use SmallVectorImpl::iterator.

llvm-svn: 96848
This commit is contained in:
Ted Kremenek 2010-02-23 01:19:17 +00:00
parent bab459eaf4
commit ca4be0c10e
1 changed files with 2 additions and 4 deletions

View File

@ -2342,10 +2342,8 @@ void Sema::CheckUnreachable(AnalysisContext &AC) {
}
llvm::array_pod_sort(lines.begin(), lines.end(), LineCmp);
for (llvm::SmallVector<ErrLoc, 24>::iterator I = lines.begin(),
E = lines.end();
I != E;
++I)
for (llvm::SmallVectorImpl::iterator I = lines.begin(), E = lines.end();
I != E; ++I)
if (I->Loc.isValid())
Diag(I->Loc, diag::warn_unreachable) << I->R1 << I->R2;
}