]> granicus.if.org Git - clang/commitdiff
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213499 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/DeclCXX.cpp

index 43d0fca9f924826909bc53f406b1a1218349539c..ed26c5262a7bf1353a9bb719f2bf01718462acb5 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);