aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaInit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Sema/SemaInit.cpp')
-rw-r--r--lib/Sema/SemaInit.cpp19
1 files changed, 2 insertions, 17 deletions
diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp
index 7c52df5f7c..1f1e76c999 100644
--- a/lib/Sema/SemaInit.cpp
+++ b/lib/Sema/SemaInit.cpp
@@ -3304,31 +3304,16 @@ InitializationSequence::Perform(Sema &S,
// Check exception specifications
if (S.CheckExceptionSpecCompatibility(CurInitExpr, DestType))
return S.ExprError();
-
- // FIXME: We should do this for all types.
- if (DestType->isAnyComplexType()) {
- CurInit =
- S.Owned(CXXBindReferenceExpr::Create(S.Context,
- CurInit.takeAs<Expr>(),
- /*ExtendsLifetime=*/false,
- /*RequiresTemporaryCopy=*/false));
- }
break;
case SK_BindReferenceToTemporary:
+ // Reference binding does not have any corresponding ASTs.
+
// Check exception specifications
if (S.CheckExceptionSpecCompatibility(CurInitExpr, DestType))
return S.ExprError();
- // FIXME: We should do this for all types.
- if (DestType->isAnyComplexType()) {
- CurInit =
- S.Owned(CXXBindReferenceExpr::Create(S.Context,
- CurInit.takeAs<Expr>(),
- /*ExtendsLifetime=*/false,
- /*RequiresTemporaryCopy=*/true));
- }
break;
case SK_UserConversion: {