summaryrefslogtreecommitdiff
path: root/src/ir.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir.cc')
-rw-r--r--src/ir.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ir.cc b/src/ir.cc
index a04b477e..07c1bc2c 100644
--- a/src/ir.cc
+++ b/src/ir.cc
@@ -599,7 +599,9 @@ void destroy_table(Table* table) {
destroy_string_slice(&table->name);
}
-ModuleField::ModuleField() : type(ModuleFieldType::Start), next(nullptr) {
+ModuleField::ModuleField() : ModuleField(ModuleFieldType::Start) {}
+
+ModuleField::ModuleField(ModuleFieldType type) : type(type), next(nullptr) {
WABT_ZERO_MEMORY(loc);
WABT_ZERO_MEMORY(start);
}