summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-07-21 05:27:31 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-07-21 05:27:31 +0000
commit6bc037cb02156f82d1ffd6b02578f304def57923 (patch)
treeb00449fe64958f5197291850c4f4d6cf5f16163c
parentd3e7a2026c899e5364f3a8988fad2ee8d2478d23 (diff)
Add missing initialization found due to a valgrind false positive.
This field is never inspected in the object state initialized by this constructor; however, initializing it seems reasonable, since it has a meaningful value. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213499 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/AST/DeclCXX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/DeclCXX.cpp b/lib/AST/DeclCXX.cpp
index 43d0fca9f9..ed26c5262a 100644
--- a/lib/AST/DeclCXX.cpp
+++ b/lib/AST/DeclCXX.cpp
@@ -1625,7 +1625,7 @@ CXXCtorInitializer::CXXCtorInitializer(ASTContext &Context,
VarDecl **Indices,
unsigned NumIndices)
: Initializee(Member), MemberOrEllipsisLocation(MemberLoc), Init(Init),
- LParenLoc(L), RParenLoc(R), IsVirtual(false),
+ LParenLoc(L), RParenLoc(R), IsDelegating(false), IsVirtual(false),
IsWritten(false), SourceOrderOrNumArrayIndices(NumIndices)
{
VarDecl **MyIndices = reinterpret_cast<VarDecl **> (this + 1);