summaryrefslogtreecommitdiffstats
path: root/lib/AST/DeclTemplate.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-06-10 20:30:23 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-06-10 20:30:23 +0000
commitfc970014c204eae2421c814bf240999b105b01fc (patch)
tree0a3f93ef56fde5856f3d6359ffd5bfc115553fec /lib/AST/DeclTemplate.cpp
parentd7421384ecab5271594595cf3ebda3580a6f366a (diff)
[modules] Track all default template arguments for a given parameter across
modules, and allow use of a default template argument if any of the parameters providing it is visible. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@239485 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclTemplate.cpp')
-rw-r--r--lib/AST/DeclTemplate.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/AST/DeclTemplate.cpp b/lib/AST/DeclTemplate.cpp
index c4e2c007c1..2544c85bbd 100644
--- a/lib/AST/DeclTemplate.cpp
+++ b/lib/AST/DeclTemplate.cpp
@@ -124,6 +124,12 @@ static void AdoptTemplateParameterList(TemplateParameterList *Params,
}
}
+namespace clang {
+void *allocateDefaultArgStorageChain(const ASTContext &C) {
+ return new (C) char[sizeof(void*) * 2];
+}
+}
+
//===----------------------------------------------------------------------===//
// RedeclarableTemplateDecl Implementation
//===----------------------------------------------------------------------===//