Make the ParentVector default to size 2.

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.

llvm-svn: 209530
This commit is contained in:
Manuel Klimek 2014-05-23 16:58:18 +00:00
parent 05b8584f16
commit a33815be22
1 changed files with 1 additions and 1 deletions

View 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 *,