From: Chris Lattner Date: Sat, 25 Aug 2007 01:49:16 +0000 (+0000) Subject: Fix clang -parse-ast-dump carbon.c X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94f67810bcbdff4cef9177f7727caf91f3e1efa1;p=clang Fix clang -parse-ast-dump carbon.c git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41391 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index f9b9f35321..58eb723078 100644 --- a/include/clang/AST/Decl.h +++ b/include/clang/AST/Decl.h @@ -186,7 +186,7 @@ public: protected: VarDecl(Kind DK, SourceLocation L, IdentifierInfo *Id, QualType T, StorageClass SC, Decl *PrevDecl) - : ValueDecl(DK, L, Id, T, PrevDecl) { SClass = SC; } + : ValueDecl(DK, L, Id, T, PrevDecl), Init(0) { SClass = SC; } private: StorageClass SClass; Expr *Init;