diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/passes/Asyncify.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/passes/Asyncify.cpp b/src/passes/Asyncify.cpp index df292317a..661086408 100644 --- a/src/passes/Asyncify.cpp +++ b/src/passes/Asyncify.cpp @@ -1534,9 +1534,9 @@ struct Asyncify : public Pass { bool allImportsCanChangeState = stateChangingImports == "" && ignoreImports == ""; String::Split listedImports(stateChangingImports, ","); - // TODO: consider renaming asyncify-ignore-indirect to - // asyncify-ignore-nondirect, but that could break users. - auto ignoreNonDirect = + // canIndirectChangeState is the default. asyncify-ignore-indirect sets it + // to false. + auto canIndirectChangeState = options.getArgumentOrDefault("asyncify-ignore-indirect", "") == ""; std::string removeListInput = options.getArgumentOrDefault("asyncify-removelist", ""); @@ -1603,7 +1603,7 @@ struct Asyncify : public Pass { // Scan the module. ModuleAnalyzer analyzer(*module, canImportChangeState, - ignoreNonDirect, + canIndirectChangeState, removeList, addList, onlyList, |