aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplateInstantiateStmt.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-05-29 18:27:38 +0000
committerDouglas Gregor <dgregor@apple.com>2009-05-29 18:27:38 +0000
commit0ca20ac8cea99c43d89510f29cf3dc876f9c9111 (patch)
tree8db223037df9c29e10bc8f861f8fc1817246a687 /lib/Sema/SemaTemplateInstantiateStmt.cpp
parent8718a6a02ccc53fea758677781a8df3a8b0c41c9 (diff)
Reduce the amount of stack space we use in SmallVectors during
template instantiation. This helps reduce our stack footprint when performing deep template instantiations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateInstantiateStmt.cpp')
-rw-r--r--lib/Sema/SemaTemplateInstantiateStmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaTemplateInstantiateStmt.cpp b/lib/Sema/SemaTemplateInstantiateStmt.cpp
index a62607d116..91807c3e6a 100644
--- a/lib/Sema/SemaTemplateInstantiateStmt.cpp
+++ b/lib/Sema/SemaTemplateInstantiateStmt.cpp
@@ -60,7 +60,7 @@ namespace {
// Common/C statements
//===----------------------------------------------------------------------===/
Sema::OwningStmtResult TemplateStmtInstantiator::VisitDeclStmt(DeclStmt *S) {
- llvm::SmallVector<Decl *, 8> Decls;
+ llvm::SmallVector<Decl *, 4> Decls;
for (DeclStmt::decl_iterator D = S->decl_begin(), DEnd = S->decl_end();
D != DEnd; ++D) {
Decl *Instantiated = SemaRef.InstantiateDecl(*D, SemaRef.CurContext,