aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-08-25 01:49:16 +0000
committerChris Lattner <sabre@nondot.org>2007-08-25 01:49:16 +0000
commit94f67810bcbdff4cef9177f7727caf91f3e1efa1 (patch)
tree2fa0e50d246537fe019c1fbf87f6a0c851ef5a6f
parent63381358122e26284a49cf018325505d50cada87 (diff)
Fix clang -parse-ast-dump carbon.c
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41391 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/Decl.h2
1 files changed, 1 insertions, 1 deletions
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;