summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-03-09 22:39:49 +0000
committerJohn McCall <rjmccall@apple.com>2010-03-09 22:39:49 +0000
commit7242868e712232258bfeab46df7e3c39149c8c3c (patch)
treea073aa8ecf818acbbbd19959605830a6c4cab357
parenteb1690d2bd22ce28269bd4c9a3bafae2ebb8bb16 (diff)
downloadbcm5719-llvm-7242868e712232258bfeab46df7e3c39149c8c3c.tar.gz
bcm5719-llvm-7242868e712232258bfeab46df7e3c39149c8c3c.zip
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. llvm-svn: 98093
-rw-r--r--clang/include/clang/Parse/DeclSpec.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/include/clang/Parse/DeclSpec.h b/clang/include/clang/Parse/DeclSpec.h
index 4fe81a7eb5c..f6f1eb936b7 100644
--- a/clang/include/clang/Parse/DeclSpec.h
+++ b/clang/include/clang/Parse/DeclSpec.h
@@ -228,7 +228,8 @@ public:
AttrList(0),
ProtocolQualifiers(0),
NumProtocolQualifiers(0),
- ProtocolLocs(0) {
+ ProtocolLocs(0),
+ writtenBS() {
}
~DeclSpec() {
delete AttrList;
OpenPOWER on IntegriCloud