aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-03-15 18:06:32 -0700
committerKazu Hirata <kazu@google.com>2023-03-15 18:06:32 -0700
commit398af9b43bbfbff291faac5bce524eca675d6caf (patch)
tree711f03500349e657ca0004eb02e02aa10391f609 /llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
parentc7c1d531b9a77a735183f67a6d8b538691284f92 (diff)
downloadllvm-398af9b43bbfbff291faac5bce524eca675d6caf.zip
llvm-398af9b43bbfbff291faac5bce524eca675d6caf.tar.gz
llvm-398af9b43bbfbff291faac5bce524eca675d6caf.tar.bz2
[llvm] Use *{Map,Set}::contains (NFC)
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
index 4fe339c..72a53b6 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
@@ -501,7 +501,7 @@ struct StaticLibcallNameMap {
if (NameLibcall.first != nullptr &&
getRuntimeLibcallSignatures().Table[NameLibcall.second] !=
unsupported) {
- assert(Map.find(NameLibcall.first) == Map.end() &&
+ assert(!Map.contains(NameLibcall.first) &&
"duplicate libcall names in name map");
Map[NameLibcall.first] = NameLibcall.second;
}