aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-01-02 19:53:12 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-01-02 19:53:12 +0000
commit743b82bf3c500de45715498dbf25f0fb39e71462 (patch)
tree26d0d41c967fd09bcf1e016cc222603599bd0ff7 /lib
parent8595a0ced701415d5194d9bdd6b47b5de6fce504 (diff)
Unkown -> Unknown
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122708 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Sema/SemaDeclAttr.cpp4
-rw-r--r--lib/Sema/SemaExpr.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp
index 6977a33ac4..22b373dbe9 100644
--- a/lib/Sema/SemaDeclAttr.cpp
+++ b/lib/Sema/SemaDeclAttr.cpp
@@ -2904,7 +2904,7 @@ void Sema::HandleDelayedDeprecationCheck(DelayedDiagnostic &DD,
void Sema::EmitDeprecationWarning(NamedDecl *D, llvm::StringRef Message,
SourceLocation Loc,
- bool UnkownObjCClass) {
+ bool UnknownObjCClass) {
// Delay if we're currently parsing a declaration.
if (ParsingDeclDepth) {
DelayedDiagnostics.push_back(DelayedDiagnostic::makeDeprecation(Loc, D,
@@ -2919,7 +2919,7 @@ void Sema::EmitDeprecationWarning(NamedDecl *D, llvm::StringRef Message,
Diag(Loc, diag::warn_deprecated_message) << D->getDeclName()
<< Message;
else {
- if (!UnkownObjCClass)
+ if (!UnknownObjCClass)
Diag(Loc, diag::warn_deprecated) << D->getDeclName();
else
Diag(Loc, diag::warn_deprecated_fwdclass_message) << D->getDeclName();
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index 30d22dafc6..e481e5ce21 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -56,7 +56,7 @@ using namespace sema;
/// referenced), false otherwise.
///
bool Sema::DiagnoseUseOfDecl(NamedDecl *D, SourceLocation Loc,
- bool UnkownObjCClass) {
+ bool UnknownObjCClass) {
if (getLangOptions().CPlusPlus && isa<FunctionDecl>(D)) {
// If there were any diagnostics suppressed by template argument deduction,
// emit them now.
@@ -77,12 +77,12 @@ bool Sema::DiagnoseUseOfDecl(NamedDecl *D, SourceLocation Loc,
// See if the decl is deprecated.
if (const DeprecatedAttr *DA = D->getAttr<DeprecatedAttr>())
- EmitDeprecationWarning(D, DA->getMessage(), Loc, UnkownObjCClass);
+ EmitDeprecationWarning(D, DA->getMessage(), Loc, UnknownObjCClass);
// See if the decl is unavailable
if (const UnavailableAttr *UA = D->getAttr<UnavailableAttr>()) {
if (UA->getMessage().empty()) {
- if (!UnkownObjCClass)
+ if (!UnknownObjCClass)
Diag(Loc, diag::err_unavailable) << D->getDeclName();
else
Diag(Loc, diag::warn_unavailable_fwdclass_message)