[cfe-commits] r125621 - /cfe/trunk/lib/Sema/SemaDeclObjC.cpp

Fariborz Jahanian fjahanian at apple.com
Tue Feb 15 16:30:32 PST 2011


Author: fjahanian
Date: Tue Feb 15 18:30:31 2011
New Revision: 125621

URL: http://llvm.org/viewvc/llvm-project?rev=125621&view=rev
Log:
Check for deprecated implementation unconditionally.
Warning and its note will be ignored in default case.

Modified:
    cfe/trunk/lib/Sema/SemaDeclObjC.cpp

Modified: cfe/trunk/lib/Sema/SemaDeclObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclObjC.cpp?rev=125621&r1=125620&r2=125621&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclObjC.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclObjC.cpp Tue Feb 15 18:30:31 2011
@@ -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





More information about the cfe-commits mailing list