diff --git a/src/wasm/wasm-validator.cpp b/src/wasm/wasm-validator.cpp index 62efe49f007..601222285fc 100644 --- a/src/wasm/wasm-validator.cpp +++ b/src/wasm/wasm-validator.cpp @@ -198,6 +198,10 @@ struct ValidationInfo { Expression* curr, const char* text, Function* func = nullptr) { + if (!ty.isBasic()) { + fail(std::string(text) + " (not basic)", curr, func); + return; + } switch (ty.getBasic()) { case Type::i32: case Type::i64: