]> granicus.if.org Git - clang/commitdiff
Fix clang -parse-ast-dump carbon.c
authorChris Lattner <sabre@nondot.org>
Sat, 25 Aug 2007 01:49:16 +0000 (01:49 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 25 Aug 2007 01:49:16 +0000 (01:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41391 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Decl.h

index f9b9f353215ba25c24c6be1115288df80eeced5f..58eb7230788fc03035a6e9c9f5cfd0703a98c716 100644 (file)
@@ -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;