@@ -1537,7 +1537,7 @@ struct Asyncify : public Pass {
15371537 // canIndirectChangeState is the default. asyncify-ignore-indirect sets it
15381538 // to false.
15391539 auto canIndirectChangeState =
1540- options.getArgumentOrDefault (" asyncify-ignore-indirect" , " " ) == " " ;
1540+ ! options.hasArgument (" asyncify-ignore-indirect" ) ;
15411541 std::string removeListInput =
15421542 options.getArgumentOrDefault (" asyncify-removelist" , " " );
15431543 if (removeListInput.empty ()) {
@@ -1558,12 +1558,10 @@ struct Asyncify : public Pass {
15581558 }
15591559 String::Split onlyList (
15601560 String::trim (read_possible_response_file (onlyListInput)), " ," );
1561- auto asserts = options.getArgumentOrDefault (" asyncify-asserts" , " " ) != " " ;
1562- auto verbose = options.getArgumentOrDefault (" asyncify-verbose" , " " ) != " " ;
1563- auto relocatable =
1564- options.getArgumentOrDefault (" asyncify-relocatable" , " " ) != " " ;
1565- auto secondaryMemory =
1566- options.getArgumentOrDefault (" asyncify-in-secondary-memory" , " " ) != " " ;
1561+ auto asserts = options.hasArgument (" asyncify-asserts" );
1562+ auto verbose = options.hasArgument (" asyncify-verbose" );
1563+ auto relocatable = options.hasArgument (" asyncify-relocatable" );
1564+ auto secondaryMemory = options.hasArgument (" asyncify-in-secondary-memory" );
15671565
15681566 // Ensure there is a memory, as we need it.
15691567 if (secondaryMemory) {
0 commit comments