aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-10-30 17:53:18 +0000
committerJohn McCall <rjmccall@apple.com>2009-10-30 17:53:18 +0000
commitcbe12738371bec6ff20372e1d3426cffc85d8323 (patch)
treed92f2843279e1eb11c68f174552f77229072538f
parent094bef56a7900f13bb777f9a352704104b1458e7 (diff)
Finally suppress a compiler warning from gcc on release-asserts. Also fixes
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
-rw-r--r--include/clang/AST/TemplateBase.h3
-rw-r--r--include/clang/AST/TypeLoc.h2
2 files changed, 3 insertions, 2 deletions
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.