From 24b41fa8239c63b9eb570d3e83c4a82840656a65 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Thu, 11 Sep 2008 04:22:26 +0000 Subject: [PATCH] CXXConditionDeclExpr expression node is an lvalue. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56093 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/Expr.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index 9452db4677..ca92c815b9 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -460,6 +460,8 @@ Expr::isLvalueResult Expr::isLvalue(ASTContext &Ctx) const { ? LV_InvalidExpression : LV_Valid); case CXXDefaultArgExprClass: return cast(this)->getExpr()->isLvalue(Ctx); + case CXXConditionDeclExprClass: + return LV_Valid; default: break; }