summaryrefslogtreecommitdiff
path: root/src/wasm-ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-ast.c')
-rw-r--r--src/wasm-ast.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm-ast.c b/src/wasm-ast.c
index a44957e1..f6353bff 100644
--- a/src/wasm-ast.c
+++ b/src/wasm-ast.c
@@ -505,6 +505,9 @@ void wasm_destroy_import(WasmAllocator* allocator, WasmImport* import) {
case WASM_EXTERNAL_KIND_GLOBAL:
wasm_destroy_global(allocator, &import->global);
break;
+ case WASM_NUM_EXTERNAL_KINDS:
+ assert(0);
+ break;
}
}