]> granicus.if.org Git - clang/commitdiff
Work around MSVC miscompilation.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 10 Jun 2015 22:49:14 +0000 (22:49 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 10 Jun 2015 22:49:14 +0000 (22:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@239494 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclTemplate.h

index d4e090eb813768aa5a6e11cceafba4d631904865..26d1e99a05b5885d8adb2ff394a44252f5b02fa5 100644 (file)
@@ -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())