diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2023-09-02 21:17:18 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2024-01-07 17:46:17 +0000 |
| commit | fe013be447cd855ccaf6094a1d06aea570450629 (patch) | |
| tree | 9adc1e0a5d25b6280995832bb29d592fb80554a6 /contrib/llvm-project/clang/lib/ExtractAPI/API.cpp | |
| parent | 2f3b605b2e159522ecab77fd518e8139aaf581e9 (diff) | |
Diffstat (limited to 'contrib/llvm-project/clang/lib/ExtractAPI/API.cpp')
| -rw-r--r-- | contrib/llvm-project/clang/lib/ExtractAPI/API.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/contrib/llvm-project/clang/lib/ExtractAPI/API.cpp b/contrib/llvm-project/clang/lib/ExtractAPI/API.cpp index 553b7bbe710f..10e79b37de73 100644 --- a/contrib/llvm-project/clang/lib/ExtractAPI/API.cpp +++ b/contrib/llvm-project/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) { |
