[cfe-commits] r85509 - /cfe/trunk/include/clang/AST/TemplateBase.h
Douglas Gregor
dgregor at apple.com
Thu Oct 29 08:25:40 PDT 2009
Author: dgregor
Date: Thu Oct 29 10:25:40 2009
New Revision: 85509
URL: http://llvm.org/viewvc/llvm-project?rev=85509&view=rev
Log:
Fix Release-Asserts build breakage
Modified:
cfe/trunk/include/clang/AST/TemplateBase.h
Modified: cfe/trunk/include/clang/AST/TemplateBase.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/TemplateBase.h?rev=85509&r1=85508&r2=85509&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/TemplateBase.h (original)
+++ cfe/trunk/include/clang/AST/TemplateBase.h Thu Oct 29 10:25:40 2009
@@ -251,11 +251,25 @@
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 {
More information about the cfe-commits
mailing list