diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-06-10 22:49:14 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-06-10 22:49:14 +0000 |
commit | b818a01ed8cd761fff4828e0e4bee8a30cc8b8c8 (patch) | |
tree | c225c0ebe208142a5faea8cea25f85007071ddb2 /include/clang/AST/DeclTemplate.h | |
parent | 8e0f18d53b80631ecd2369991866700ce912c998 (diff) |
Work around MSVC miscompilation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@239494 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/DeclTemplate.h')
-rw-r--r-- | include/clang/AST/DeclTemplate.h | 5 |
1 files 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()) |