diff options
author | Anders Carlsson <andersca@mac.com> | 2009-04-16 05:35:41 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-04-16 05:35:41 +0000 |
commit | 3cbc3cf55059f50ade9d47a4b222bfbe047638d2 (patch) | |
tree | 3b800967db63a2e03f839510806a474112b38eac | |
parent | b54b276a920246c595a0498da281821eb9d22996 (diff) |
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
-rw-r--r-- | lib/Sema/SemaDeclCXX.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |