Check for deprecated implementation unconditionally. Warning and its note will be ignored in default case. llvm-svn: 125621 GitOrigin-RevId: 6fd9435f6d163d5f7bfd5b0e864aeccaba15b64f
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