]> granicus.if.org Git - clang/commitdiff
CXXConditionDeclExpr expression node is an lvalue.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 11 Sep 2008 04:22:26 +0000 (04:22 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 11 Sep 2008 04:22:26 +0000 (04:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56093 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Expr.cpp

index 9452db4677a63452345d727a74a272525e922758..ca92c815b96b646ea9dd2166ff3b8cff2e639ae8 100644 (file)
@@ -460,6 +460,8 @@ Expr::isLvalueResult Expr::isLvalue(ASTContext &Ctx) const {
             ? LV_InvalidExpression : LV_Valid);
   case CXXDefaultArgExprClass:
     return cast<CXXDefaultArgExpr>(this)->getExpr()->isLvalue(Ctx);
+  case CXXConditionDeclExprClass:
+    return LV_Valid;
   default:
     break;
   }