From: John McCall Date: Fri, 30 Oct 2009 17:53:18 +0000 (+0000) Subject: Finally suppress a compiler warning from gcc on release-asserts. Also fixes X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cbe12738371bec6ff20372e1d3426cffc85d8323;p=clang Finally suppress a compiler warning from gcc on release-asserts. Also fixes a crash on in same, which bears additional investigation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85598 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/TemplateBase.h b/include/clang/AST/TemplateBase.h index 19fd56ff52..bb14c62d77 100644 --- a/include/clang/AST/TemplateBase.h +++ b/include/clang/AST/TemplateBase.h @@ -254,8 +254,9 @@ private: public: TemplateArgumentLocInfo() + : Expression(0) #ifndef NDEBUG - : Kind(K_None) + , Kind(K_None) #endif {} diff --git a/include/clang/AST/TypeLoc.h b/include/clang/AST/TypeLoc.h index a12b57bc23..da7857822e 100644 --- a/include/clang/AST/TypeLoc.h +++ b/include/clang/AST/TypeLoc.h @@ -905,7 +905,7 @@ public: setTemplateNameLoc(Loc); for (unsigned i = 0, e = getNumArgs(); i != e; ++i) { - TemplateArgumentLocInfo Info = TemplateArgumentLocInfo(); + TemplateArgumentLocInfo Info; #ifndef NDEBUG // If asserts are enabled, be sure to initialize the argument // loc with the right kind of pointer.