From 8e1f6031e9889ba770c7be4a9b084da5f14456a0 Mon Sep 17 00:00:00 2001 From: Ben Smith Date: Wed, 26 Apr 2017 13:32:41 -0700 Subject: Update the testsuite (#410) This exposed a small bug where an empty init expr would have type 0, which would print as "(null)" since it didn't exist. --- src/binary-reader-interpreter.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/binary-reader-interpreter.cc') diff --git a/src/binary-reader-interpreter.cc b/src/binary-reader-interpreter.cc index fcb6fede..d4153edd 100644 --- a/src/binary-reader-interpreter.cc +++ b/src/binary-reader-interpreter.cc @@ -900,6 +900,7 @@ Result BinaryReaderInterpreter::BeginGlobal(uint32_t index, InterpreterGlobal* global = GetGlobalByModuleIndex(index); global->typed_value.type = type; global->mutable_ = mutable_; + init_expr_value.type = Type::Void; return Result::Ok; } -- cgit v1.2.3