summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaInit.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-02-03 16:38:03 +0000
committerAnders Carlsson <andersca@mac.com>2010-02-03 16:38:03 +0000
commit3b227bd6294e00952131ab08d2812caa8f6cfb45 (patch)
treea9c19179b6ce04a95ebc063fc8353f31e1972c15 /clang/lib/Sema/SemaInit.cpp
parent5bb4efdf3c83f3d60298ab6037606f4cb79a5d99 (diff)
downloadbcm5719-llvm-3b227bd6294e00952131ab08d2812caa8f6cfb45.tar.gz
bcm5719-llvm-3b227bd6294e00952131ab08d2812caa8f6cfb45.zip
Revert the new reference binding code; I came up with a way simpler solution for the reference binding bug that is preventing self-hosting.
llvm-svn: 95223
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
-rw-r--r--clang/lib/Sema/SemaInit.cpp19
1 files changed, 2 insertions, 17 deletions
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp
index 7c52df5f7c4..1f1e76c9999 100644
--- a/clang/lib/Sema/SemaInit.cpp
+++ b/clang/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: {
OpenPOWER on IntegriCloud