[cfe-commits] r69267 - /cfe/trunk/lib/Sema/SemaDeclCXX.cpp

Anders Carlsson andersca at mac.com
Wed Apr 15 22:35:41 PDT 2009


Author: andersca
Date: Thu Apr 16 00:35:41 2009
New Revision: 69267

URL: http://llvm.org/viewvc/llvm-project?rev=69267&view=rev
Log:
Disable the code I added before until I understand what's causing default2.cpp to fail.

Modified:
    cfe/trunk/lib/Sema/SemaDeclCXX.cpp

Modified: cfe/trunk/lib/Sema/SemaDeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclCXX.cpp?rev=69267&r1=69266&r2=69267&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclCXX.cpp Thu Apr 16 00:35:41 2009
@@ -1827,6 +1827,10 @@
     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 @@
                                              NumExprs,
                                              SourceLocation());
       AddInitializerToDecl(Dcl, ExprArg(*this, Temp), /*DirectInit=*/true);
+#endif
     }
     return;
   }





More information about the cfe-commits mailing list