[cfe-commits] r85533 - /cfe/trunk/include/clang/AST/TypeLoc.h
John McCall
rjmccall at apple.com
Thu Oct 29 16:20:43 PDT 2009
Author: rjmccall
Date: Thu Oct 29 18:20:43 2009
New Revision: 85533
URL: http://llvm.org/viewvc/llvm-project?rev=85533&view=rev
Log:
Silence a gcc warning where it notices that default-constructing a class
doesn't initialize anything.
Modified:
cfe/trunk/include/clang/AST/TypeLoc.h
Modified: cfe/trunk/include/clang/AST/TypeLoc.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/TypeLoc.h?rev=85533&r1=85532&r2=85533&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/TypeLoc.h (original)
+++ cfe/trunk/include/clang/AST/TypeLoc.h Thu Oct 29 18:20:43 2009
@@ -901,7 +901,7 @@
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.
More information about the cfe-commits
mailing list