[cfe-commits] r72632 - /cfe/trunk/lib/Sema/SemaTemplateInstantiateExpr.cpp
Anders Carlsson
andersca at mac.com
Sat May 30 13:52:38 PDT 2009
Author: andersca
Date: Sat May 30 15:52:37 2009
New Revision: 72632
URL: http://llvm.org/viewvc/llvm-project?rev=72632&view=rev
Log:
Bind temporaries correctly when instantiating expressions.
Modified:
cfe/trunk/lib/Sema/SemaTemplateInstantiateExpr.cpp
Modified: cfe/trunk/lib/Sema/SemaTemplateInstantiateExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplateInstantiateExpr.cpp?rev=72632&r1=72631&r2=72632&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplateInstantiateExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplateInstantiateExpr.cpp Sat May 30 15:52:37 2009
@@ -982,7 +982,7 @@
if (SubExpr.isInvalid())
return SemaRef.ExprError();
- return move(SubExpr);
+ return SemaRef.MaybeBindToTemporary(SubExpr.takeAs<Expr>());
}
Sema::OwningExprResult
More information about the cfe-commits
mailing list