[cfe-commits] r98093 - /cfe/trunk/include/clang/Parse/DeclSpec.h

John McCall rjmccall at apple.com
Tue Mar 9 14:39:49 PST 2010


Author: rjmccall
Date: Tue Mar  9 16:39:49 2010
New Revision: 98093

URL: http://llvm.org/viewvc/llvm-project?rev=98093&view=rev
Log:
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.


Modified:
    cfe/trunk/include/clang/Parse/DeclSpec.h

Modified: cfe/trunk/include/clang/Parse/DeclSpec.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Parse/DeclSpec.h?rev=98093&r1=98092&r2=98093&view=diff
==============================================================================
--- cfe/trunk/include/clang/Parse/DeclSpec.h (original)
+++ cfe/trunk/include/clang/Parse/DeclSpec.h Tue Mar  9 16:39:49 2010
@@ -228,7 +228,8 @@
       AttrList(0),
       ProtocolQualifiers(0),
       NumProtocolQualifiers(0),
-      ProtocolLocs(0) {
+      ProtocolLocs(0),
+      writtenBS() {
   }
   ~DeclSpec() {
     delete AttrList;





More information about the cfe-commits mailing list