r185623 - Use SmallVectorImpl::const_iterator instead of SmallVector to avoid specifying the vector size.

Craig Topper craig.topper at gmail.com
Thu Jul 4 06:11:33 PDT 2013


Author: ctopper
Date: Thu Jul  4 08:11:33 2013
New Revision: 185623

URL: http://llvm.org/viewvc/llvm-project?rev=185623&view=rev
Log:
Use SmallVectorImpl::const_iterator instead of SmallVector to avoid specifying the vector size.

Modified:
    cfe/trunk/include/clang/Sema/Initialization.h

Modified: cfe/trunk/include/clang/Sema/Initialization.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Initialization.h?rev=185623&r1=185622&r2=185623&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/Initialization.h (original)
+++ cfe/trunk/include/clang/Sema/Initialization.h Thu Jul  4 08:11:33 2013
@@ -859,8 +859,8 @@ public:
 
   /// \brief Determine whether the initialization sequence is invalid.
   bool Failed() const { return SequenceKind == FailedSequence; }
-  
-  typedef SmallVector<Step, 4>::const_iterator step_iterator;
+
+  typedef SmallVectorImpl<Step>::const_iterator step_iterator;
   step_iterator step_begin() const { return Steps.begin(); }
   step_iterator step_end()   const { return Steps.end(); }
 





More information about the cfe-commits mailing list