Check for deprecated implementation unconditionally.
Warning and its note will be ignored in default case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125621 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp
index 075393b..102289b 100644
--- a/lib/Sema/SemaDeclObjC.cpp
+++ b/lib/Sema/SemaDeclObjC.cpp
@@ -28,12 +28,8 @@
NamedDecl *ND,
SourceLocation ImplLoc,
int select) {
-
- unsigned DIAG = diag::warn_deprecated_def;
- if (S.Diags.getDiagnosticLevel(DIAG, ImplLoc)== Diagnostic::Ignored)
- return;
if (ND && ND->getAttr<DeprecatedAttr>()) {
- S.Diag(ImplLoc, DIAG) << select;
+ S.Diag(ImplLoc, diag::warn_deprecated_def) << select;
if (select == 0)
S.Diag(ND->getLocation(), diag::note_method_declared_at);
else