Patch to keep clang honest that it does not yet support
explicit return type on block literals.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62240 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Parse/ParseExpr.cpp b/lib/Parse/ParseExpr.cpp
index 230abf8..0295f70 100644
--- a/lib/Parse/ParseExpr.cpp
+++ b/lib/Parse/ParseExpr.cpp
@@ -1239,6 +1239,11 @@
Actions.ActOnBlockError(CaretLoc, CurScope);
}
}
+ else {
+ // Saw something like: ^expr
+ Diag(Tok, diag::err_expected_expression);
+ return ExprError();
+ }
return move(Result);
}