From: Rafael Espindola Date: Tue, 8 May 2012 00:28:39 +0000 (+0000) Subject: Add missing 'y'. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=258796e3c7311a23528b45ca601439ebd7746ea4;p=clang Add missing 'y'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156348 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index ffe4939155..37611bd7bc 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -1831,7 +1831,7 @@ def warn_attribute_unknown_visibility : Warning<"unknown visibility '%0'">; def warn_attribute_protected_visibility : Warning<"target does not support 'protected' visibility; using 'default'">, InGroup>; -def err_mismatched_visibilit: Error<"visibility does not match previous declaration">; +def err_mismatched_visibility: Error<"visibility does not match previous declaration">; def note_previous_attribute : Note<"previous attribute is here">; def err_unknown_machine_mode : Error<"unknown machine mode %0">; def err_unsupported_machine_mode : Error<"unsupported machine mode %0">; diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index 47acdf9456..eb26a98f55 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -1880,7 +1880,7 @@ static void handleVisibilityAttr(Sema &S, Decl *D, const AttributeList &Attr) { if (PrevAttr) { VisibilityAttr::VisibilityType PrevVisibility = PrevAttr->getVisibility(); if (PrevVisibility != type) { - S.Diag(Attr.getLoc(), diag::err_mismatched_visibilit); + S.Diag(Attr.getLoc(), diag::err_mismatched_visibility); S.Diag(PrevAttr->getLocation(), diag::note_previous_attribute); return; }