Add missing initialization found due to a valgrind false positive.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 21 Jul 2014 05:27:31 +0000 (05:27 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 21 Jul 2014 05:27:31 +0000 (05:27 +0000)
This field is never inspected in the object state initialized by this
constructor; however, initializing it seems reasonable, since it has
a meaningful value.

llvm-svn: 213499

clang/lib/AST/DeclCXX.cpp

index 43d0fca..ed26c52 100644 (file)
@@ -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);