diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp index 493e391964ac1..5aef016720cf4 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp @@ -318,7 +318,7 @@ class WebAssemblyLowerEmscriptenEHSjLj final : public ModulePass { // Map of StringMap InvokeWrappers; // Set of allowed function names for exception handling - std::set EHAllowlistSet; + std::set> EHAllowlistSet; // Functions that contains calls to setjmp SmallPtrSet SetjmpUsers; @@ -349,8 +349,8 @@ class WebAssemblyLowerEmscriptenEHSjLj final : public ModulePass { bool areAllExceptionsAllowed() const { return EHAllowlistSet.empty(); } bool supportsException(const Function *F) const { - return EnableEmEH && (areAllExceptionsAllowed() || - EHAllowlistSet.count(std::string(F->getName()))); + return EnableEmEH && + (areAllExceptionsAllowed() || EHAllowlistSet.count(F->getName())); } void replaceLongjmpWith(Function *LongjmpF, Function *NewF);