From: Richard Smith Date: Wed, 10 Jun 2015 22:49:14 +0000 (+0000) Subject: Work around MSVC miscompilation. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b818a01ed8cd761fff4828e0e4bee8a30cc8b8c8;p=clang Work around MSVC miscompilation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@239494 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/DeclTemplate.h b/include/clang/AST/DeclTemplate.h index d4e090eb81..26d1e99a05 100644 --- a/include/clang/AST/DeclTemplate.h +++ b/include/clang/AST/DeclTemplate.h @@ -217,6 +217,8 @@ public: } }; +void *allocateDefaultArgStorageChain(const ASTContext &C); + /// Storage for a default argument. This is conceptually either empty, or an /// argument value, or a pointer to a previous declaration that had a default /// argument. @@ -283,9 +285,6 @@ public: } /// Set that the default argument was inherited from another parameter. void setInherited(const ASTContext &C, ParmDecl *InheritedFrom) { - // Defined in DeclTemplate.cpp. - extern void *allocateDefaultArgStorageChain(const ASTContext &C); - assert(!isInherited() && "default argument already inherited"); InheritedFrom = getParmOwningDefaultArg(InheritedFrom); if (!isSet())