aboutsummaryrefslogtreecommitdiff
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
commitb91570a51f9c9583bb27fdfe43ce9c487623999a (patch)
tree680182ccfb72fdac1e362965007c4b02ad36231e
parent9f3e6a545934a703efd8c8ddebb04c036ae22350 (diff)
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
-rw-r--r--include/clang/Parse/DeclSpec.h3
1 files changed, 2 insertions, 1 deletions
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;