diff options
author | Kazu Hirata <kazu@google.com> | 2023-06-13 00:24:43 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-06-13 00:24:43 -0700 |
commit | c4933940f76bb775c33b70f4543d30c2e595ef1f (patch) | |
tree | 6d1cc9ec0161d29652909d7f301e21bee6c0f24f /clang/lib/ExtractAPI/API.cpp | |
parent | 0df7e9f886feef6e002bb41081062364233696be (diff) | |
download | llvm-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.cpp | 5 |
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) { |