diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-10-27 20:44:00 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-10-27 20:44:00 +0000 |
commit | dd6907bd7757eaed3cf127399b78601bf2ca8d5d (patch) | |
tree | 11957424b235b6212823c6c3489831325d6390f0 | |
parent | f4ea7084c5d31f02d55dad7013f5b46fd65b580a (diff) | |
download | bcm5719-llvm-dd6907bd7757eaed3cf127399b78601bf2ca8d5d.tar.gz bcm5719-llvm-dd6907bd7757eaed3cf127399b78601bf2ca8d5d.zip |
Decay array/function types of a statement-expression.
// rdar: // 8600553.
llvm-svn: 117484
-rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 1f50b4e5c56..17a3aff0302 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -7071,9 +7071,8 @@ Sema::ActOnStmtExpr(SourceLocation LPLoc, Stmt *SubStmt, LastStmt = Label->getSubStmt(); } if (Expr *LastExpr = dyn_cast<Expr>(LastStmt)) { + DefaultFunctionArrayLvalueConversion(LastExpr); Ty = LastExpr->getType(); - if (Ty->isArrayType()) - Ty = Context.getArrayDecayedType(Ty); if (!Ty->isDependentType() && !LastExpr->isTypeDependent()) { ExprResult Res = PerformCopyInitialization( InitializedEntity::InitializeResult(LPLoc, |