aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExprCXX.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-08-16 05:13:48 +0000
committerAnders Carlsson <andersca@mac.com>2009-08-16 05:13:48 +0000
commit9abf2aedae7538cfd85f3ff0898a6d14385c8e36 (patch)
treea173ddcd8f0aa57278b894e1c9917e79bb556e0f /lib/Sema/SemaExprCXX.cpp
parent2d46eb21eb2c904831b0e9f75ab3523384c70e66 (diff)
AddInitializerToDecl can't take a FullExprArg. Make it take an ExprArg, and create the CXXExprWithTemporaries before setting the initializer on the VarDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79176 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprCXX.cpp')
-rw-r--r--lib/Sema/SemaExprCXX.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Sema/SemaExprCXX.cpp b/lib/Sema/SemaExprCXX.cpp
index 274893b99e..f313c5653e 100644
--- a/lib/Sema/SemaExprCXX.cpp
+++ b/lib/Sema/SemaExprCXX.cpp
@@ -902,11 +902,7 @@ Sema::PerformImplicitConversion(Expr *&From, QualType ToType,
// FIXME: When can ToType be a reference type?
assert(!ToType->isReferenceType());
- // FIXME: Keep track of whether the copy constructor is elidable or not.
- bool Elidable = (isa<CallExpr>(From) ||
- isa<CXXTemporaryObjectExpr>(From));
- From = BuildCXXConstructExpr(ToType, SCS.CopyConstructor,
- Elidable, &From, 1);
+ From = BuildCXXConstructExpr(ToType, SCS.CopyConstructor, &From, 1);
return false;
}