aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-02-23 01:19:17 +0000
committerTed Kremenek <kremenek@apple.com>2010-02-23 01:19:17 +0000
commit133a6aab12ae3706e83da7c1f2fb15316efc12c2 (patch)
tree8f6b0aec31a292a2027c7fd50d0a82cc5bd528f0 /lib/Sema/SemaChecking.cpp
parent1e025f2e559a884a3be5db2c784cdd865352e17b (diff)
Use SmallVectorImpl::iterator.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96848 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaChecking.cpp')
-rw-r--r--lib/Sema/SemaChecking.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp
index 97ad5b7dce..25479bceb2 100644
--- a/lib/Sema/SemaChecking.cpp
+++ b/lib/Sema/SemaChecking.cpp
@@ -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;
}