From: John McCall Date: Tue, 9 Mar 2010 22:39:49 +0000 (+0000) Subject: Value-initialize the written-builtin-specifiers field of DeclSpec, which X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b91570a51f9c9583bb27fdfe43ce9c487623999a;p=clang Value-initialize the written-builtin-specifiers field of DeclSpec, which wasn't being initialized properly along the implicit-definition path. Found by the valgrind buildbot. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98093 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Parse/DeclSpec.h b/include/clang/Parse/DeclSpec.h index 4fe81a7eb5..f6f1eb936b 100644 --- a/include/clang/Parse/DeclSpec.h +++ b/include/clang/Parse/DeclSpec.h @@ -228,7 +228,8 @@ public: AttrList(0), ProtocolQualifiers(0), NumProtocolQualifiers(0), - ProtocolLocs(0) { + ProtocolLocs(0), + writtenBS() { } ~DeclSpec() { delete AttrList;