aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/AST/TemplateBase.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/include/clang/AST/TemplateBase.h b/include/clang/AST/TemplateBase.h
index 2bd896e936..912bbdfe0c 100644
--- a/include/clang/AST/TemplateBase.h
+++ b/include/clang/AST/TemplateBase.h
@@ -251,11 +251,25 @@ private:
public:
TemplateArgumentLocInfo()
- : Union(), Kind(K_None) {}
+ : Union()
+#ifndef NDEBUG
+ , Kind(K_None)
+#endif
+ {}
+
TemplateArgumentLocInfo(DeclaratorInfo *DInfo)
- : Union(DInfo), Kind(K_DeclaratorInfo) {}
+ : Union(DInfo)
+#ifndef NDEBUG
+ , Kind(K_DeclaratorInfo)
+#endif
+ {}
+
TemplateArgumentLocInfo(Expr *E)
- : Union(E), Kind(K_Expression) {}
+ : Union(E)
+#ifndef NDEBUG
+ , Kind(K_Expression)
+#endif
+ {}
/// \brief Returns whether this
bool empty() const {