diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-12-12 23:17:04 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-12-12 23:17:04 +0000 |
commit | ba96ffcb2a444d12ffcc4781bd443279c7250d7e (patch) | |
tree | d011b19d2badd184996b7b11385d7608e7bb3030 /lib/Sema/SemaDecl.cpp | |
parent | fa2b3dd31c2fa32f10156e3cbbc8d0cfa2879d03 (diff) |
objc-arc: better diagnostic when block is declared
inside a struct/union.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146444 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 09ada7e55d..bd2e639eab 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -9206,7 +9206,8 @@ void Sema::ActOnFields(Scope* S, "this system field has retaining ownership")); } } else { - Diag(FD->getLocation(), diag::err_arc_objc_object_in_struct); + Diag(FD->getLocation(), diag::err_arc_objc_object_in_struct) + << T->isBlockPointerType(); } ARCErrReported = true; } |