aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.