aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-10-29 15:25:40 +0000
committerDouglas Gregor <dgregor@apple.com>2009-10-29 15:25:40 +0000
commit8de39b431d3775cd46584080beec3a75d019bd28 (patch)
tree085efeffd494ead9a346c516dedc137a6fc0f268
parentc6eb131a83eb35d0c896170652563449648a32c3 (diff)
Fix Release-Asserts build breakage
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85509 91177308-0d34-0410-b5e6-96231b3b80d8
-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 {