]> granicus.if.org Git - clang/commitdiff
Make the ParentVector default to size 2.
authorManuel Klimek <klimek@google.com>
Fri, 23 May 2014 16:58:18 +0000 (16:58 +0000)
committerManuel Klimek <klimek@google.com>
Fri, 23 May 2014 16:58:18 +0000 (16:58 +0000)
As Jordan noted, it makes more sense when we store it in the ParentMap,
and doesn't really make a difference when we return it from getParents.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209530 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/ASTContext.h

index 7ca5da8862f99cba96437ad6252dd5926354f33e..b0de90c5f699c12e5c05ca92daa3d37cff2ef9e5 100644 (file)
@@ -421,7 +421,7 @@ public:
   ASTMutationListener *Listener;
 
   /// \brief Contains parents of a node.
-  typedef llvm::SmallVector<ast_type_traits::DynTypedNode, 1> ParentVector;
+  typedef llvm::SmallVector<ast_type_traits::DynTypedNode, 2> ParentVector;
 
   /// \brief Maps from a node to its parents.
   typedef llvm::DenseMap<const void *,