diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 7 |
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); } |