]> granicus.if.org Git - clang/commitdiff
[ptr-traits] Some compilers (older Clang? unsure) on build bots need
authorChandler Carruth <chandlerc@gmail.com>
Wed, 30 Dec 2015 06:21:02 +0000 (06:21 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 30 Dec 2015 06:21:02 +0000 (06:21 +0000)
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

include/clang/AST/TemplateName.h
lib/AST/TemplateName.cpp

index 85304e9f953dad484204599c9ed2d4d5c12d4e46..3e10d2fc4ad2a4eccd86d89cb548ba1f47bf3455 100644 (file)
@@ -180,9 +180,7 @@ class TemplateName {
 
   StorageType Storage;
 
-  explicit TemplateName(void *Ptr) {
-    Storage = StorageType::getFromOpaqueValue(Ptr);
-  }
+  explicit TemplateName(void *Ptr);
 
 public:
   // \brief Kind of name that is actually stored.
index f46f3cffde49e10a396a85f2d33283b4180763f2..47e0255d52ef75b394a7623456875d82734747e4 100644 (file)
@@ -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) {}