summaryrefslogtreecommitdiff
path: root/src/binary-reader-interp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary-reader-interp.cc')
-rw-r--r--src/binary-reader-interp.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/binary-reader-interp.cc b/src/binary-reader-interp.cc
index 77941447..cfc32dba 100644
--- a/src/binary-reader-interp.cc
+++ b/src/binary-reader-interp.cc
@@ -422,14 +422,7 @@ wabt::Result BinaryReaderInterp::EmitData(const void* data,
}
wabt::Result BinaryReaderInterp::EmitOpcode(Opcode opcode) {
- if (opcode.HasPrefix()) {
- CHECK_RESULT(EmitI8(opcode.GetPrefix()));
- }
-
- // Assume opcode codes are all 1 byte for now (excluding the prefix).
- uint32_t code = opcode.GetCode();
- assert(code < 256);
- return EmitI8(code);
+ return EmitI32(static_cast<uint32_t>(opcode));
}
wabt::Result BinaryReaderInterp::EmitI8(uint8_t value) {