summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/passes/Directize.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/passes/Directize.cpp b/src/passes/Directize.cpp
index 67d9e77a8..ea6a946f5 100644
--- a/src/passes/Directize.cpp
+++ b/src/passes/Directize.cpp
@@ -226,12 +226,10 @@ struct Directize : public Pass {
}
}
- // Without typed function references, all we can do is optimize table
- // accesses, so if we can't do that, stop.
- if (validTables.empty() && !module->features.hasTypedFunctionReferences()) {
+ if (validTables.empty()) {
return;
}
- // The table exists and is constant, so this is possible.
+
FunctionDirectizer(validTables).run(runner, module);
}
};