diff options
author | Ben Smith <binji@chromium.org> | 2016-09-22 17:39:20 -0700 |
---|---|---|
committer | Ben Smith <binji@chromium.org> | 2016-09-29 11:37:27 -0700 |
commit | b4d2bc2f3fe925a78a7e1ea061106b1f01e8dba2 (patch) | |
tree | f6ae9ce3def03e9945cf2108221b0ab2138fa42a /src/wasm-ast-checker.c | |
parent | cca0d93b8ba2a6ea101f18927eddfbe5ec726dd0 (diff) | |
download | wabt-b4d2bc2f3fe925a78a7e1ea061106b1f01e8dba2.tar.gz wabt-b4d2bc2f3fe925a78a7e1ea061106b1f01e8dba2.tar.bz2 wabt-b4d2bc2f3fe925a78a7e1ea061106b1f01e8dba2.zip |
parse tests for {im,ex}porting tables, etc.
Diffstat (limited to 'src/wasm-ast-checker.c')
-rw-r--r-- | src/wasm-ast-checker.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wasm-ast-checker.c b/src/wasm-ast-checker.c index fe3a159b..0595ca18 100644 --- a/src/wasm-ast-checker.c +++ b/src/wasm-ast-checker.c @@ -950,6 +950,8 @@ static void check_global(Context* ctx, static const char s_desc[] = "global initializer expression"; WasmType type = WASM_TYPE_VOID; WasmExpr* expr = global->init_expr; + if (!expr) + return; if (expr->next != NULL) { print_const_expr_error(ctx, loc, s_desc); |