From b818a01ed8cd761fff4828e0e4bee8a30cc8b8c8 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 10 Jun 2015 22:49:14 +0000 Subject: [PATCH] Work around MSVC miscompilation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@239494 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/DeclTemplate.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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()) -- 2.40.0