summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-05-08 00:28:39 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-05-08 00:28:39 +0000
commit0232c19a3128b7aad003047ed49b65f3cece1b63 (patch)
tree1806d230a4570bddb8dfb9b4a017637c9743ff17
parentd6225d304eba88d09364c42339502712bdeb91fb (diff)
downloadbcm5719-llvm-0232c19a3128b7aad003047ed49b65f3cece1b63.tar.gz
bcm5719-llvm-0232c19a3128b7aad003047ed49b65f3cece1b63.zip
Add missing 'y'.
llvm-svn: 156348
-rw-r--r--clang/include/clang/Basic/DiagnosticSemaKinds.td2
-rw-r--r--clang/lib/Sema/SemaDeclAttr.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td
index ffe4939155b..37611bd7bc6 100644
--- a/clang/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/clang/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<DiagGroup<"unsupported-visibility">>;
-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/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index 47acdf9456f..eb26a98f555 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/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;
}
OpenPOWER on IntegriCloud