mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 21:53:12 +08:00
Decay array/function types of a statement-expression.
// rdar: // 8600553. llvm-svn: 117484
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user