File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
llvm/lib/Target/WebAssembly Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ class WebAssemblyLowerEmscriptenEHSjLj final : public ModulePass {
318
318
// Map of <function signature string, invoke_ wrappers>
319
319
StringMap<Function *> InvokeWrappers;
320
320
// Set of allowed function names for exception handling
321
- std::set<std::string> EHAllowlistSet;
321
+ std::set<std::string, std::less<> > EHAllowlistSet;
322
322
// Functions that contains calls to setjmp
323
323
SmallPtrSet<Function *, 8 > SetjmpUsers;
324
324
@@ -349,8 +349,8 @@ class WebAssemblyLowerEmscriptenEHSjLj final : public ModulePass {
349
349
350
350
bool areAllExceptionsAllowed () const { return EHAllowlistSet.empty (); }
351
351
bool supportsException (const Function *F) const {
352
- return EnableEmEH && ( areAllExceptionsAllowed () ||
353
- EHAllowlistSet.count (std::string ( F->getName () )));
352
+ return EnableEmEH &&
353
+ ( areAllExceptionsAllowed () || EHAllowlistSet.count (F->getName ()));
354
354
}
355
355
void replaceLongjmpWith (Function *LongjmpF, Function *NewF);
356
356
You can’t perform that action at this time.
0 commit comments