From 3f709e42e3be0f28a88ca3e77663a02b52c914f4 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 6 Dec 2025 20:56:45 +0100 Subject: Vendor import of llvm-project main llvmorg-21-init-19288-gface93e724f4, the last commit before the upstream release/21.x branch was created. --- llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp') diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp index 4fe1df0ab3e4..37a34573bb33 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp @@ -270,7 +270,7 @@ bool FixFunctionBitcasts::runOnModule(Module &M) { Function *F = UseFunc.second; FunctionType *Ty = CB->getFunctionType(); - auto Pair = Wrappers.insert(std::make_pair(std::make_pair(F, Ty), nullptr)); + auto Pair = Wrappers.try_emplace(std::make_pair(F, Ty)); if (Pair.second) Pair.first->second = createWrapper(F, Ty); -- cgit v1.3