aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI/SymbolSet.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2023-12-09 13:28:42 +0000
committerDimitry Andric <dim@FreeBSD.org>2023-12-09 13:28:42 +0000
commitb1c73532ee8997fe5dfbeb7d223027bdf99758a0 (patch)
tree7d6e51c294ab6719475d660217aa0c0ad0526292 /llvm/lib/TextAPI/SymbolSet.cpp
parent7fa27ce4a07f19b07799a767fc29416f3b625afb (diff)
Diffstat (limited to 'llvm/lib/TextAPI/SymbolSet.cpp')
-rw-r--r--llvm/lib/TextAPI/SymbolSet.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/TextAPI/SymbolSet.cpp b/llvm/lib/TextAPI/SymbolSet.cpp
index 157e13749729..5b9882dadcdf 100644
--- a/llvm/lib/TextAPI/SymbolSet.cpp
+++ b/llvm/lib/TextAPI/SymbolSet.cpp
@@ -29,8 +29,5 @@ Symbol *SymbolSet::addGlobal(SymbolKind Kind, StringRef Name, SymbolFlags Flags,
}
const Symbol *SymbolSet::findSymbol(SymbolKind Kind, StringRef Name) const {
- auto It = Symbols.find({Kind, Name});
- if (It != Symbols.end())
- return It->second;
- return nullptr;
+ return Symbols.lookup({Kind, Name});
}