diff options
Diffstat (limited to 'src/passes/Inlining.cpp')
-rw-r--r-- | src/passes/Inlining.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/passes/Inlining.cpp b/src/passes/Inlining.cpp index 5a2a7137a..44ebbd54d 100644 --- a/src/passes/Inlining.cpp +++ b/src/passes/Inlining.cpp @@ -335,11 +335,14 @@ struct Inlining : public Pass { infos[ex->value].usedGlobally = true; } } - for (auto& segment : module->table.segments) { - for (auto name : segment.data) { - infos[name].usedGlobally = true; + for (auto& table : module->tables) { + for (auto& segment : table->segments) { + for (auto name : segment.data) { + infos[name].usedGlobally = true; + } } } + for (auto& global : module->globals) { if (!global->imported()) { for (auto* ref : FindAll<RefFunc>(global->init).list) { |