diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-03-21 20:28:39 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-03-21 20:28:39 +0000 |
commit | 9354f6aaa70e1543d122644fee0c3f834324d2fc (patch) | |
tree | 500deb30c760d1bf82f154b6e8ca82e8c034ea2f /lib/Sema/SemaStmt.cpp | |
parent | cde7a1dc68af2eb063a039b5a31c3b7dd92b1aa9 (diff) |
fixes the diagnostic issued in // rdar://11069896
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153217 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaStmt.cpp')
-rw-r--r-- | lib/Sema/SemaStmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaStmt.cpp b/lib/Sema/SemaStmt.cpp index 333f6dd255..1ddedcfe68 100644 --- a/lib/Sema/SemaStmt.cpp +++ b/lib/Sema/SemaStmt.cpp @@ -1888,7 +1888,7 @@ Sema::ActOnCapScopeReturnStmt(SourceLocation ReturnLoc, Expr *RetValExp) { RetValExp->getType()->isVoidType()))) { if (!getLangOpts().CPlusPlus && RetValExp->getType()->isVoidType()) - Diag(ReturnLoc, diag::ext_return_has_void_expr) << "" << 2; + Diag(ReturnLoc, diag::ext_return_has_void_expr) << "literal" << 2; else { Diag(ReturnLoc, diag::err_return_block_has_expr); RetValExp = 0; |