aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/ExtractAPI/API.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-06-13 00:24:43 -0700
committerKazu Hirata <kazu@google.com>2023-06-13 00:24:43 -0700
commitc4933940f76bb775c33b70f4543d30c2e595ef1f (patch)
tree6d1cc9ec0161d29652909d7f301e21bee6c0f24f /clang/lib/ExtractAPI/API.cpp
parent0df7e9f886feef6e002bb41081062364233696be (diff)
downloadllvm-c4933940f76bb775c33b70f4543d30c2e595ef1f.zip
llvm-c4933940f76bb775c33b70f4543d30c2e595ef1f.tar.gz
llvm-c4933940f76bb775c33b70f4543d30c2e595ef1f.tar.bz2
[clang] Use DenseMapBase::lookup (NFC)
Diffstat (limited to 'clang/lib/ExtractAPI/API.cpp')
-rw-r--r--clang/lib/ExtractAPI/API.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/ExtractAPI/API.cpp b/clang/lib/ExtractAPI/API.cpp
index 553b7bb..10e79b3 100644
--- a/clang/lib/ExtractAPI/API.cpp
+++ b/clang/lib/ExtractAPI/API.cpp
@@ -249,10 +249,7 @@ APIRecord *APISet::findRecordForUSR(StringRef USR) const {
if (USR.empty())
return nullptr;
- auto It = USRBasedLookupTable.find(USR);
- if (It != USRBasedLookupTable.end())
- return It->second;
- return nullptr;
+ return USRBasedLookupTable.lookup(USR);
}
StringRef APISet::recordUSR(const Decl *D) {