summaryrefslogtreecommitdiff
path: root/src/tools/wasm-reduce.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/wasm-reduce.cpp')
-rw-r--r--src/tools/wasm-reduce.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/wasm-reduce.cpp b/src/tools/wasm-reduce.cpp
index bb2de0896..6b4483dd2 100644
--- a/src/tools/wasm-reduce.cpp
+++ b/src/tools/wasm-reduce.cpp
@@ -937,6 +937,11 @@ struct Reducer
replaceCurrent(Builder(*getModule()).replaceWithIdenticalType(curr));
}
}
+ void visitRefFunc(RefFunc* curr) {
+ if (names.count(curr->func)) {
+ replaceCurrent(Builder(*getModule()).replaceWithIdenticalType(curr));
+ }
+ }
void visitExport(Export* curr) {
if (names.count(curr->value)) {
exportsToRemove.push_back(curr->name);