diff options
author | Kazu Hirata <kazu@google.com> | 2023-03-15 18:06:32 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-03-15 18:06:32 -0700 |
commit | 398af9b43bbfbff291faac5bce524eca675d6caf (patch) | |
tree | 711f03500349e657ca0004eb02e02aa10391f609 /llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp | |
parent | c7c1d531b9a77a735183f67a6d8b538691284f92 (diff) | |
download | llvm-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.cpp | 2 |
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; } |