]> granicus.if.org Git - clang/commitdiff
Fix Release-Asserts build breakage
authorDouglas Gregor <dgregor@apple.com>
Thu, 29 Oct 2009 15:25:40 +0000 (15:25 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 29 Oct 2009 15:25:40 +0000 (15:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85509 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/TemplateBase.h

index 2bd896e9361e8dc8d101c6f88063e467a5f002f5..912bbdfe0c1ed14d6ce2e5950ca02f707208cfac 100644 (file)
@@ -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 {