]> granicus.if.org Git - clang/commitdiff
add missing specification for a default argument. I guess g++ 4.0 doesn't
authorChris Lattner <sabre@nondot.org>
Thu, 12 Jul 2007 15:26:16 +0000 (15:26 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 12 Jul 2007 15:26:16 +0000 (15:26 +0000)
notice this.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39776 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Decl.h

index 3411f1f9e3ee5ec3123b7f0188838c00e3338c6b..80474cde2a1886e843a7d0fcad85eccc299cb185 100644 (file)
@@ -212,7 +212,7 @@ public:
     None, Extern, Static
   };
   FunctionDecl(SourceLocation L, IdentifierInfo *Id, QualType T,
-               StorageClass S = None, Decl *PrevDecl)
+               StorageClass S = None, Decl *PrevDecl = 0)
     : ValueDecl(Function, L, Id, T, PrevDecl), 
       ParamInfo(0), Body(0), DeclChain(0), SClass(S) {}
   virtual ~FunctionDecl();