Work around MSVC miscompilation.

llvm-svn: 239494
This commit is contained in:
Richard Smith 2015-06-10 22:49:14 +00:00
parent 3fc3040860
commit ae7c04f065
1 changed files with 2 additions and 3 deletions

View File

@ -217,6 +217,8 @@ public:
} }
}; };
void *allocateDefaultArgStorageChain(const ASTContext &C);
/// Storage for a default argument. This is conceptually either empty, or an /// 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 value, or a pointer to a previous declaration that had a default
/// argument. /// argument.
@ -283,9 +285,6 @@ public:
} }
/// Set that the default argument was inherited from another parameter. /// Set that the default argument was inherited from another parameter.
void setInherited(const ASTContext &C, ParmDecl *InheritedFrom) { void setInherited(const ASTContext &C, ParmDecl *InheritedFrom) {
// Defined in DeclTemplate.cpp.
extern void *allocateDefaultArgStorageChain(const ASTContext &C);
assert(!isInherited() && "default argument already inherited"); assert(!isInherited() && "default argument already inherited");
InheritedFrom = getParmOwningDefaultArg(InheritedFrom); InheritedFrom = getParmOwningDefaultArg(InheritedFrom);
if (!isSet()) if (!isSet())