aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaDeclObjC.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-10-30 19:00:19 -0700
committerKazu Hirata <kazu@google.com>2021-10-30 19:00:19 -0700
commit4db2e4cebe9c542b58aee26c556c84bd12aa6780 (patch)
treea50bed3c6716f91153805f1d2908ba8361227049 /clang/lib/Sema/SemaDeclObjC.cpp
parent213666f8044990bbf2999c2dc839b6c984e5616b (diff)
downloadllvm-4db2e4cebe9c542b58aee26c556c84bd12aa6780.zip
llvm-4db2e4cebe9c542b58aee26c556c84bd12aa6780.tar.gz
llvm-4db2e4cebe9c542b58aee26c556c84bd12aa6780.tar.bz2
Use {DenseSet,SetVector,SmallPtrSet}::contains (NFC)
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclObjC.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp
index 51ac96f..f8cf8a3 100644
--- a/clang/lib/Sema/SemaDeclObjC.cpp
+++ b/clang/lib/Sema/SemaDeclObjC.cpp
@@ -2711,8 +2711,7 @@ static void CheckProtocolMethodDefs(Sema &S,
ProtocolsExplictImpl.reset(new ProtocolNameSet);
findProtocolsWithExplicitImpls(Super, *ProtocolsExplictImpl);
}
- if (ProtocolsExplictImpl->find(PDecl->getIdentifier()) !=
- ProtocolsExplictImpl->end())
+ if (ProtocolsExplictImpl->contains(PDecl->getIdentifier()))
return;
// If no super class conforms to the protocol, we should not search