diff options
| author | John McCall <rjmccall@apple.com> | 2015-10-21 18:06:38 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2015-10-21 18:06:38 +0000 |
| commit | 039f2bbd02cef9455beb35c3c246e41690c31398 (patch) | |
| tree | 272b165d54d2a4876e48cf52c5751ce63e960425 /clang/lib | |
| parent | f8a9b66f658d791acebc1868d5ec2fcbe59c841d (diff) | |
| download | bcm5719-llvm-039f2bbd02cef9455beb35c3c246e41690c31398.tar.gz bcm5719-llvm-039f2bbd02cef9455beb35c3c246e41690c31398.zip | |
Some minor ARC diagnostic improvements.
llvm-svn: 250917
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Sema/JumpDiagnostics.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/lib/Sema/JumpDiagnostics.cpp b/clang/lib/Sema/JumpDiagnostics.cpp index 775fe85740d..c394d24d5fd 100644 --- a/clang/lib/Sema/JumpDiagnostics.cpp +++ b/clang/lib/Sema/JumpDiagnostics.cpp @@ -147,9 +147,12 @@ static ScopePair GetDiagForGotoScopeDecl(Sema &S, const Decl *D) { if (VD->hasLocalStorage()) { switch (VD->getType().isDestructedType()) { case QualType::DK_objc_strong_lifetime: + return ScopePair(diag::note_protected_by_objc_strong_init, + diag::note_exits_objc_strong); + case QualType::DK_objc_weak_lifetime: - return ScopePair(diag::note_protected_by_objc_ownership, - diag::note_exits_objc_ownership); + return ScopePair(diag::note_protected_by_objc_weak_init, + diag::note_exits_objc_weak); case QualType::DK_cxx_destructor: OutDiag = diag::note_exits_dtor; |

