r213499 - Add missing initialization found due to a valgrind false positive.
Richard Smith
richard-llvm at metafoo.co.uk
Sun Jul 20 22:27:31 PDT 2014
Author: rsmith
Date: Mon Jul 21 00:27:31 2014
New Revision: 213499
URL: http://llvm.org/viewvc/llvm-project?rev=213499&view=rev
Log:
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.
Modified:
cfe/trunk/lib/AST/DeclCXX.cpp
Modified: cfe/trunk/lib/AST/DeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclCXX.cpp?rev=213499&r1=213498&r2=213499&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclCXX.cpp (original)
+++ cfe/trunk/lib/AST/DeclCXX.cpp Mon Jul 21 00:27:31 2014
@@ -1625,7 +1625,7 @@ CXXCtorInitializer::CXXCtorInitializer(A
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);
More information about the cfe-commits
mailing list