Fix typo (per Chris's comment).

llvm-svn: 125619
This commit is contained in:
Fariborz Jahanian 2011-02-16 00:14:11 +00:00
parent 7484e4e337
commit 0c87d36d9d
2 changed files with 2 additions and 2 deletions

View File

@ -1969,7 +1969,7 @@ def warn_deprecated_message : Warning<"%0 is deprecated: %1">,
def warn_deprecated_fwdclass_message : Warning<
"%0 maybe deprecated because receiver type is unknown">,
InGroup<DeprecatedDeclarations>;
def warn_depercated_def : Warning<
def warn_deprecated_def : Warning<
"Implementing deprecated %select{method|class|category}0">,
InGroup<DeprecatedImplementations>, DefaultIgnore;
def err_unavailable : Error<"%0 is unavailable">;

View File

@ -29,7 +29,7 @@ static void DiagnoseObjCImplementedDeprecations(Sema &S,
SourceLocation ImplLoc,
int select) {
unsigned DIAG = diag::warn_depercated_def;
unsigned DIAG = diag::warn_deprecated_def;
if (S.Diags.getDiagnosticLevel(DIAG, ImplLoc)== Diagnostic::Ignored)
return;
if (ND && ND->getAttr<DeprecatedAttr>()) {