From 6e6abe73ddf77755c08ba473c52d111fa8fda768 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 20 Sep 2016 11:13:46 -0700 Subject: mark table as present if seen as an import --- src/wasm-s-parser.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index 525cc29f7..0ab2ed0dc 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -1556,6 +1556,7 @@ private: im->kind = Import::Memory; } else if ((*s[3])[0]->str() == TABLE) { im->kind = Import::Table; + seenTable = true; } else if ((*s[3])[0]->str() == GLOBAL) { im->kind = Import::Global; } else { -- cgit v1.2.3