]> granicus.if.org Git - clang/commitdiff
Silence a gcc warning where it notices that default-constructing a class
authorJohn McCall <rjmccall@apple.com>
Thu, 29 Oct 2009 23:20:43 +0000 (23:20 +0000)
committerJohn McCall <rjmccall@apple.com>
Thu, 29 Oct 2009 23:20:43 +0000 (23:20 +0000)
doesn't initialize anything.

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

include/clang/AST/TypeLoc.h

index b544bc37e8617fa2d55974b4ec265163c0eb2a04..2c3f51493f8e274a5942247a1827edcf1082ee2f 100644 (file)
@@ -901,7 +901,7 @@ public:
     setTemplateNameLoc(Loc);
 
     for (unsigned i = 0, e = getNumArgs(); i != e; ++i) {
-      TemplateArgumentLocInfo Info;
+      TemplateArgumentLocInfo Info = TemplateArgumentLocInfo();
 #ifndef NDEBUG
       // If asserts are enabled, be sure to initialize the argument
       // loc with the right kind of pointer.