aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDeclObjC.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2008-12-29 19:57:17 +0000
committerFariborz Jahanian <fjahanian@apple.com>2008-12-29 19:57:17 +0000
commitfc820a4394a33e4fccfd8283909d425708311d41 (patch)
treedf63e3cdcdc20052034379f39d1e1dacbe4df1db /lib/Sema/SemaDeclObjC.cpp
parent39e98008ebd5b0056594f3df1fc8d3e2a4d8cf0e (diff)
Remove hasKind(). Use existing getKind().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61476 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclObjC.cpp')
-rw-r--r--lib/Sema/SemaDeclObjC.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp
index 3f86e52e64..cf1a5259f2 100644
--- a/lib/Sema/SemaDeclObjC.cpp
+++ b/lib/Sema/SemaDeclObjC.cpp
@@ -235,10 +235,10 @@ Sema::FindProtocolDeclaration(bool WarnOnDeclarations,
continue;
}
for (const Attr *attr = PDecl->getAttrs(); attr; attr = attr->getNext()) {
- if (attr->hasKind(Attr::Unavailable))
+ if (attr->getKind() == Attr::Unavailable)
Diag(ProtocolId[i].second, diag::warn_unavailable) <<
PDecl->getDeclName();
- if (attr->hasKind(Attr::Deprecated))
+ if (attr->getKind() == Attr::Deprecated)
Diag(ProtocolId[i].second, diag::warn_deprecated) <<
PDecl->getDeclName();
}