[cfe-commits] r113917 - /cfe/trunk/lib/AST/ExprClassification.cpp
Douglas Gregor
dgregor at apple.com
Tue Sep 14 18:37:48 PDT 2010
Author: dgregor
Date: Tue Sep 14 20:37:48 2010
New Revision: 113917
URL: http://llvm.org/viewvc/llvm-project?rev=113917&view=rev
Log:
Fix classification of statement expressions.
Modified:
cfe/trunk/lib/AST/ExprClassification.cpp
Modified: cfe/trunk/lib/AST/ExprClassification.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprClassification.cpp?rev=113917&r1=113916&r2=113917&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExprClassification.cpp (original)
+++ cfe/trunk/lib/AST/ExprClassification.cpp Tue Sep 14 20:37:48 2010
@@ -264,7 +264,7 @@
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;
}
More information about the cfe-commits
mailing list