diff options
author | Anders Carlsson <andersca@mac.com> | 2009-08-16 03:42:12 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-08-16 03:42:12 +0000 |
commit | 6f68027af2b6ce294a2706f23a1d3cb7ca1b8d37 (patch) | |
tree | 9eff6746c2d05dd45213118ad97adfbc4176ca11 /lib/AST/Expr.cpp | |
parent | ec74c5929c78bd1670619022f6cfd471becf65aa (diff) |
Add MaybeBindToTemporary calls for member call expressions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79171 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Expr.cpp')
-rw-r--r-- | lib/AST/Expr.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index cfcbca4730..b92ecac6a3 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -800,6 +800,9 @@ Expr::isLvalueResult Expr::isLvalueInternal(ASTContext &Ctx) const { case CXXTypeidExprClass: // C++ 5.2.8p1: The result of a typeid expression is an lvalue of ... return LV_Valid; + case CXXBindTemporaryExprClass: + return cast<CXXBindTemporaryExpr>(this)->getSubExpr()-> + isLvalueInternal(Ctx); case ConditionalOperatorClass: { // Complicated handling is only for C++. if (!Ctx.getLangOptions().CPlusPlus) |