diff options
Diffstat (limited to 'src/wasm-parser.y')
-rw-r--r-- | src/wasm-parser.y | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wasm-parser.y b/src/wasm-parser.y index 8518a7ff..eef6f9f8 100644 --- a/src/wasm-parser.y +++ b/src/wasm-parser.y @@ -1207,7 +1207,7 @@ module_fields : CHECK_ALLOC_NULL(field); field->loc = @2; field->type = WASM_MODULE_FIELD_TYPE_EXPORT; - field->wasm_export = $2; + field->export_ = $2; } | module_fields table { $$ = $1; @@ -1278,13 +1278,13 @@ module : break; } case WASM_MODULE_FIELD_TYPE_EXPORT: { - WasmExportPtr export_ptr = &field->wasm_export; + WasmExportPtr export_ptr = &field->export_; CHECK_ALLOC(wasm_append_export_ptr_value(&$$.exports, &export_ptr)); - if (field->wasm_export.name.start) { + if (field->export_.name.start) { WasmBinding* binding = wasm_append_binding(&$$.export_bindings); CHECK_ALLOC_NULL(binding); binding->loc = field->loc; - binding->name = field->wasm_export.name; + binding->name = field->export_.name; binding->index = $$.exports.size - 1; } break; |