aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-03-06 18:41:35 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-03-06 18:41:35 +0000
commit27949f65b089fec7902b2a15d718b3d1b0ccf988 (patch)
tree6d452702e1f76f8714efa8e9f4f4194a5b81b5fd /lib/Sema/SemaExpr.cpp
parentf9aa3635fccb3dc0925ef4d27dfa2b692a8e6a90 (diff)
Undo patch for // rdar://10735698
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152128 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r--lib/Sema/SemaExpr.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index aba38db035..ab96f7416f 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -8902,12 +8902,7 @@ ExprResult Sema::ActOnBlockStmtExpr(SourceLocation CaretLoc,
ExprCleanupObjects.push_back(Result->getBlockDecl());
ExprNeedsCleanups = true;
}
-
- if (BSI->TheDecl->blockMissingReturnType() &&
- !RetTy->isDependentType() &&
- !Context.getCanonicalType(RetTy)->isVoidType())
- Diag(CaretLoc, diag::warn_block_missing_return_type);
-
+
return Owned(Result);
}