r239494 - Work around MSVC miscompilation.
Richard Smith
richard-llvm at metafoo.co.uk
Wed Jun 10 15:49:14 PDT 2015
Author: rsmith
Date: Wed Jun 10 17:49:14 2015
New Revision: 239494
URL: http://llvm.org/viewvc/llvm-project?rev=239494&view=rev
Log:
Work around MSVC miscompilation.
Modified:
cfe/trunk/include/clang/AST/DeclTemplate.h
Modified: cfe/trunk/include/clang/AST/DeclTemplate.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclTemplate.h?rev=239494&r1=239493&r2=239494&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclTemplate.h (original)
+++ cfe/trunk/include/clang/AST/DeclTemplate.h Wed Jun 10 17:49:14 2015
@@ -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())
More information about the cfe-commits
mailing list