]> granicus.if.org Git - clang/commitdiff
Disable the code I added before until I understand what's causing default2.cpp to...
authorAnders Carlsson <andersca@mac.com>
Thu, 16 Apr 2009 05:35:41 +0000 (05:35 +0000)
committerAnders Carlsson <andersca@mac.com>
Thu, 16 Apr 2009 05:35:41 +0000 (05:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69267 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclCXX.cpp

index ec1ed4668af8b5c336f2b417d6ef2210e0efc385..5e781f974d632cb5c1c7b941f2a3b9641dbb2694 100644 (file)
@@ -1827,6 +1827,10 @@ void Sema::AddCXXDirectInitializerToDecl(DeclPtrTy Dcl,
     if (!Constructor)
       RealDecl->setInvalidDecl();
     else {
+#if 0
+      // FIXME: Adding the initializer causes an error in 
+      // test/SemaCXX/default2.cpp so it's disabled for now.
+      
       // Let clients know that initialization was done with a direct
       // initializer.
       VDecl->setCXXDirectInitializer(true);
@@ -1838,6 +1842,7 @@ void Sema::AddCXXDirectInitializerToDecl(DeclPtrTy Dcl,
                                              NumExprs,
                                              SourceLocation());
       AddInitializerToDecl(Dcl, ExprArg(*this, Temp), /*DirectInit=*/true);
+#endif
     }
     return;
   }