summaryrefslogtreecommitdiff
path: root/src/passes/DuplicateImportElimination.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/DuplicateImportElimination.cpp')
-rw-r--r--src/passes/DuplicateImportElimination.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/DuplicateImportElimination.cpp b/src/passes/DuplicateImportElimination.cpp
index 1a0319e3a..33ce2288a 100644
--- a/src/passes/DuplicateImportElimination.cpp
+++ b/src/passes/DuplicateImportElimination.cpp
@@ -31,7 +31,7 @@ struct DuplicateImportElimination : public Pass {
// This pass does not alter function contents.
bool requiresNonNullableLocalFixups() override { return false; }
- void run(PassRunner* runner, Module* module) override {
+ void run(Module* module) override {
ImportInfo imports(*module);
std::map<Name, Name> replacements;
std::map<std::pair<Name, Name>, Name> seen;
@@ -54,7 +54,7 @@ struct DuplicateImportElimination : public Pass {
}
if (!replacements.empty()) {
module->updateMaps();
- OptUtils::replaceFunctions(runner, *module, replacements);
+ OptUtils::replaceFunctions(getPassRunner(), *module, replacements);
for (auto name : toRemove) {
module->removeFunction(name);
}