summaryrefslogtreecommitdiff
path: root/src/passes/Inlining.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/Inlining.cpp')
-rw-r--r--src/passes/Inlining.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/passes/Inlining.cpp b/src/passes/Inlining.cpp
index 727e94d72..41481b310 100644
--- a/src/passes/Inlining.cpp
+++ b/src/passes/Inlining.cpp
@@ -348,11 +348,9 @@ struct Inlining : public Pass {
infos[ex->value].usedGlobally = true;
}
}
- for (auto& table : module->tables) {
- for (auto& segment : table->segments) {
- for (auto name : segment.data) {
- infos[name].usedGlobally = true;
- }
+ for (auto& segment : module->elementSegments) {
+ for (auto name : segment->data) {
+ infos[name].usedGlobally = true;
}
}