From: David Blaikie Date: Sat, 13 Jul 2013 22:29:32 +0000 (+0000) Subject: Initialize the "IsCompleteDefinitionRequired" field in the ASTContext ctor X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45a0409e024334ccf2d326d3094a5d5c42dd2463;p=clang Initialize the "IsCompleteDefinitionRequired" field in the ASTContext ctor Introduced in r186262 & found by the hexagon buildbots (but owing to this being UB, that's random chance - so there's no additional test case here) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186265 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index cc9a90746b..628d70e15b 100644 --- a/include/clang/AST/Decl.h +++ b/include/clang/AST/Decl.h @@ -2469,18 +2469,15 @@ private: } protected: - TagDecl(Kind DK, TagKind TK, DeclContext *DC, - SourceLocation L, IdentifierInfo *Id, - TagDecl *PrevDecl, SourceLocation StartL) - : TypeDecl(DK, DC, L, Id, StartL), DeclContext(DK), - TypedefNameDeclOrQualifier((TypedefNameDecl*) 0) { + TagDecl(Kind DK, TagKind TK, DeclContext *DC, SourceLocation L, + IdentifierInfo *Id, TagDecl *PrevDecl, SourceLocation StartL) + : TypeDecl(DK, DC, L, Id, StartL), DeclContext(DK), TagDeclKind(TK), + IsCompleteDefinition(false), IsBeingDefined(false), + IsEmbeddedInDeclarator(false), IsFreeStanding(false), + IsCompleteDefinitionRequired(false), + TypedefNameDeclOrQualifier((TypedefNameDecl *)0) { assert((DK != Enum || TK == TTK_Enum) && "EnumDecl not matched with TTK_Enum"); - TagDeclKind = TK; - IsCompleteDefinition = false; - IsBeingDefined = false; - IsEmbeddedInDeclarator = false; - IsFreeStanding = false; setPreviousDeclaration(PrevDecl); }