From: Argyrios Kyrtzidis Date: Thu, 6 Dec 2012 19:41:23 +0000 (+0000) Subject: Make sure to initialize the HasSkippedBody bit. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb4f3a2591782f8643f06724703d2e5b03af36d2;p=clang Make sure to initialize the HasSkippedBody bit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169540 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index 9758db1298..d9ab9ccc53 100644 --- a/include/clang/AST/Decl.h +++ b/include/clang/AST/Decl.h @@ -1559,7 +1559,8 @@ protected: HasWrittenPrototype(true), IsDeleted(false), IsTrivial(false), IsDefaulted(false), IsExplicitlyDefaulted(false), HasImplicitReturnZero(false), IsLateTemplateParsed(false), - IsConstexpr(isConstexprSpecified), EndRangeLoc(NameInfo.getEndLoc()), + IsConstexpr(isConstexprSpecified), HasSkippedBody(false), + EndRangeLoc(NameInfo.getEndLoc()), TemplateOrSpecialization(), DNLoc(NameInfo.getInfo()) {} diff --git a/include/clang/AST/DeclObjC.h b/include/clang/AST/DeclObjC.h index 6ceb066267..d1067432e3 100644 --- a/include/clang/AST/DeclObjC.h +++ b/include/clang/AST/DeclObjC.h @@ -241,7 +241,7 @@ private: IsDefined(isDefined), IsRedeclaration(0), HasRedeclaration(0), DeclImplementation(impControl), objcDeclQualifier(OBJC_TQ_None), RelatedResultType(HasRelatedResultType), - SelLocsKind(SelLoc_StandardNoSpace), IsOverriding(0), + SelLocsKind(SelLoc_StandardNoSpace), IsOverriding(0), HasSkippedBody(0), MethodDeclType(T), ResultTInfo(ResultTInfo), ParamsAndSelLocs(0), NumParams(0), DeclEndLoc(endLoc), Body(), SelfDecl(0), CmdDecl(0) {