aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/ExprClassification.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-09-15 01:37:48 +0000
committerDouglas Gregor <dgregor@apple.com>2010-09-15 01:37:48 +0000
commit226cbfcd97e400ac1c1afc06d646424136cfe196 (patch)
treefbcc45a1eeb4e1bb187c4e36eee7c4fd60f77bb9 /lib/AST/ExprClassification.cpp
parent1484e0da648e1aa3a68f7114bb771a6ca57f5316 (diff)
Fix classification of statement expressions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113917 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ExprClassification.cpp')
-rw-r--r--lib/AST/ExprClassification.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/ExprClassification.cpp b/lib/AST/ExprClassification.cpp
index b62a00f98e..c9069f8707 100644
--- a/lib/AST/ExprClassification.cpp
+++ b/lib/AST/ExprClassification.cpp
@@ -264,7 +264,7 @@ static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E) {
case Expr::StmtExprClass: {
const CompoundStmt *S = cast<StmtExpr>(E)->getSubStmt();
if (const Expr *LastExpr = dyn_cast_or_null<Expr>(S->body_back()))
- return ClassifyInternal(Ctx, LastExpr);
+ return ClassifyUnnamed(Ctx, LastExpr->getType());
return Cl::CL_PRValue;
}