From: Anders Carlsson Date: Thu, 16 Apr 2009 05:35:41 +0000 (+0000) Subject: Disable the code I added before until I understand what's causing default2.cpp to... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3cbc3cf55059f50ade9d47a4b222bfbe047638d2;p=clang Disable the code I added before until I understand what's causing default2.cpp to fail. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69267 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp index ec1ed4668a..5e781f974d 100644 --- a/lib/Sema/SemaDeclCXX.cpp +++ b/lib/Sema/SemaDeclCXX.cpp @@ -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; }