r209530 - Make the ParentVector default to size 2.
Manuel Klimek
klimek at google.com
Fri May 23 09:58:19 PDT 2014
Author: klimek
Date: Fri May 23 11:58:18 2014
New Revision: 209530
URL: http://llvm.org/viewvc/llvm-project?rev=209530&view=rev
Log:
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.
Modified:
cfe/trunk/include/clang/AST/ASTContext.h
Modified: cfe/trunk/include/clang/AST/ASTContext.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ASTContext.h?rev=209530&r1=209529&r2=209530&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ASTContext.h (original)
+++ cfe/trunk/include/clang/AST/ASTContext.h Fri May 23 11:58:18 2014
@@ -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 *,
More information about the cfe-commits
mailing list