From: Douglas Gregor Date: Thu, 29 Oct 2009 15:25:40 +0000 (+0000) Subject: Fix Release-Asserts build breakage X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8de39b431d3775cd46584080beec3a75d019bd28;p=clang Fix Release-Asserts build breakage git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85509 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/TemplateBase.h b/include/clang/AST/TemplateBase.h index 2bd896e936..912bbdfe0c 100644 --- a/include/clang/AST/TemplateBase.h +++ b/include/clang/AST/TemplateBase.h @@ -251,11 +251,25 @@ private: public: TemplateArgumentLocInfo() - : Union(), Kind(K_None) {} + : Union() +#ifndef NDEBUG + , Kind(K_None) +#endif + {} + TemplateArgumentLocInfo(DeclaratorInfo *DInfo) - : Union(DInfo), Kind(K_DeclaratorInfo) {} + : Union(DInfo) +#ifndef NDEBUG + , Kind(K_DeclaratorInfo) +#endif + {} + TemplateArgumentLocInfo(Expr *E) - : Union(E), Kind(K_Expression) {} + : Union(E) +#ifndef NDEBUG + , Kind(K_Expression) +#endif + {} /// \brief Returns whether this bool empty() const {