From: Richard Smith Date: Mon, 21 Jul 2014 05:27:31 +0000 (+0000) Subject: Add missing initialization found due to a valgrind false positive. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6bc037cb02156f82d1ffd6b02578f304def57923;p=clang 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 --- 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 (this + 1);