diff options
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 1f50b4e5c5..17a3aff030 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/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, |