summaryrefslogtreecommitdiff
path: root/src/binary-reader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary-reader.cc')
-rw-r--r--src/binary-reader.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binary-reader.cc b/src/binary-reader.cc
index e1c5e759..ebdcb547 100644
--- a/src/binary-reader.cc
+++ b/src/binary-reader.cc
@@ -2033,11 +2033,11 @@ Result BinaryReader::ReadCodeSection(Offset section_size) {
Index func_index = num_func_imports_ + i;
Offset func_offset = state_.offset;
state_.offset = func_offset;
- CALLBACK(BeginFunctionBody, func_index);
uint32_t body_size;
CHECK_RESULT(ReadU32Leb128(&body_size, "function body size"));
Offset body_start_offset = state_.offset;
Offset end_offset = body_start_offset + body_size;
+ CALLBACK(BeginFunctionBody, func_index, body_size);
uint64_t total_locals = 0;
Index num_local_decls;