[cfe-commits] r96848 - /cfe/trunk/lib/Sema/SemaChecking.cpp

Ted Kremenek kremenek at apple.com
Mon Feb 22 17:19:17 PST 2010


Author: kremenek
Date: Mon Feb 22 19:19:17 2010
New Revision: 96848

URL: http://llvm.org/viewvc/llvm-project?rev=96848&view=rev
Log:
Use SmallVectorImpl::iterator.

Modified:
    cfe/trunk/lib/Sema/SemaChecking.cpp

Modified: cfe/trunk/lib/Sema/SemaChecking.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaChecking.cpp?rev=96848&r1=96847&r2=96848&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaChecking.cpp (original)
+++ cfe/trunk/lib/Sema/SemaChecking.cpp Mon Feb 22 19:19:17 2010
@@ -2342,10 +2342,8 @@
   }
 
   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;
 }





More information about the cfe-commits mailing list