]> granicus.if.org Git - clang/commitdiff
Finally suppress a compiler warning from gcc on release-asserts. Also fixes
authorJohn McCall <rjmccall@apple.com>
Fri, 30 Oct 2009 17:53:18 +0000 (17:53 +0000)
committerJohn McCall <rjmccall@apple.com>
Fri, 30 Oct 2009 17:53:18 +0000 (17:53 +0000)
a crash on <vector> in same, which bears additional investigation.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85598 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/TemplateBase.h
include/clang/AST/TypeLoc.h

index 19fd56ff52b14b90f3f9662f2192fc998577991a..bb14c62d7770c3bd1b209b55aee8e2ab74a8ed79 100644 (file)
@@ -254,8 +254,9 @@ private:
 
 public:
   TemplateArgumentLocInfo()
+    : Expression(0)
 #ifndef NDEBUG
-    : Kind(K_None) 
+      , Kind(K_None) 
 #endif
     {}
   
index a12b57bc2378cec8ba9900609bbcdbf247d8f95d..da7857822e9c4355ecf0ae6332f21fc0d3514d46 100644 (file)
@@ -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.