summaryrefslogtreecommitdiff
path: root/src/passes/Directize.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/Directize.cpp')
-rw-r--r--src/passes/Directize.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/passes/Directize.cpp b/src/passes/Directize.cpp
index 8f75c8f57..54315dc77 100644
--- a/src/passes/Directize.cpp
+++ b/src/passes/Directize.cpp
@@ -93,17 +93,21 @@ private:
struct Directize : public Pass {
void run(PassRunner* runner, Module* module) override {
- if (!module->table.exists)
+ if (!module->table.exists) {
return;
- if (module->table.imported())
+ }
+ if (module->table.imported()) {
return;
+ }
for (auto& ex : module->exports) {
- if (ex->kind == ExternalKind::Table)
+ if (ex->kind == ExternalKind::Table) {
return;
+ }
}
FlatTable flatTable(module->table);
- if (!flatTable.valid)
+ if (!flatTable.valid) {
return;
+ }
// The table exists and is constant, so this is possible.
{
PassRunner runner(module);