]> granicus.if.org Git - clang/commitdiff
Value-initialize the written-builtin-specifiers field of DeclSpec, which
authorJohn McCall <rjmccall@apple.com>
Tue, 9 Mar 2010 22:39:49 +0000 (22:39 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 9 Mar 2010 22:39:49 +0000 (22:39 +0000)
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

include/clang/Parse/DeclSpec.h

index 4fe81a7eb5c27e08f1c54b24969f4e5833f5cb6d..f6f1eb936b7a90b3445cb2074da61a663717888c 100644 (file)
@@ -228,7 +228,8 @@ public:
       AttrList(0),
       ProtocolQualifiers(0),
       NumProtocolQualifiers(0),
-      ProtocolLocs(0) {
+      ProtocolLocs(0),
+      writtenBS() {
   }
   ~DeclSpec() {
     delete AttrList;