summaryrefslogtreecommitdiffstats
path: root/lib/AST/TemplateName.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-12-30 06:21:02 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-12-30 06:21:02 +0000
commit60d3ad956c28dc96de6ab3deec3885b3481018cb (patch)
tree5c290bbf3b16a3d58e560862005cfabdad9f0e38 /lib/AST/TemplateName.cpp
parentb1217ccafd1f81b241bb53e2e79888de2f8410c2 (diff)
[ptr-traits] Some compilers (older Clang? unsure) on build bots need
this constructor to be out of line in order to not require the complete type of TemplateDecl. Hopefully this will fix the build bots. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256629 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/TemplateName.cpp')
-rw-r--r--lib/AST/TemplateName.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/AST/TemplateName.cpp b/lib/AST/TemplateName.cpp
index f46f3cffde..47e0255d52 100644
--- a/lib/AST/TemplateName.cpp
+++ b/lib/AST/TemplateName.cpp
@@ -51,6 +51,10 @@ void SubstTemplateTemplateParmPackStorage::Profile(llvm::FoldingSetNodeID &ID,
ArgPack.Profile(ID, Context);
}
+TemplateName::TemplateName(void *Ptr) {
+ Storage = StorageType::getFromOpaqueValue(Ptr);
+}
+
TemplateName::TemplateName(TemplateDecl *Template) : Storage(Template) {}
TemplateName::TemplateName(OverloadedTemplateStorage *Storage)
: Storage(Storage) {}