Index: src/wasm/ast-decoder.cc |
diff --git a/src/wasm/ast-decoder.cc b/src/wasm/ast-decoder.cc |
index 88e70cbf17e5062a88f18ccb47172e6c12047a17..f686f6c02efa2cab91cd8f801beccec73aec1f98 100644 |
--- a/src/wasm/ast-decoder.cc |
+++ b/src/wasm/ast-decoder.cc |
@@ -114,8 +114,7 @@ class WasmDecoder : public Decoder { |
inline bool Validate(const byte* pc, GlobalIndexOperand& operand) { |
ModuleEnv* m = module_; |
if (m && m->module && operand.index < m->module->globals.size()) { |
- operand.machine_type = m->module->globals[operand.index].type; |
- operand.type = WasmOpcodes::LocalTypeFor(operand.machine_type); |
+ operand.type = m->module->globals[operand.index].type; |
return true; |
} |
error(pc, pc + 1, "invalid global index"); |