[cfe-commits] r117484 - /cfe/trunk/lib/Sema/SemaExpr.cpp
Fariborz Jahanian
fjahanian at apple.com
Wed Oct 27 13:44:00 PDT 2010
Author: fjahanian
Date: Wed Oct 27 15:44:00 2010
New Revision: 117484
URL: http://llvm.org/viewvc/llvm-project?rev=117484&view=rev
Log:
Decay array/function types of a statement-expression.
// rdar: // 8600553.
Modified:
cfe/trunk/lib/Sema/SemaExpr.cpp
Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=117484&r1=117483&r2=117484&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Wed Oct 27 15:44:00 2010
@@ -7071,9 +7071,8 @@
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,
More information about the cfe-commits
mailing list