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 ec1ed46..5e781f9 100644
--- a/lib/Sema/SemaDeclCXX.cpp
+++ b/lib/Sema/SemaDeclCXX.cpp
@@ -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;
}