@@ -5648,7 +5648,7 @@ handle_compilation_hint_branch_hint_processor(const uint8 *buf,
56485648{
56495649 (void)module;
56505650 struct WASMCompilationHintBranchHint *hint = hint_store;
5651- hint->type = WASM_COMPILATION_HINT_BRANCH;
5651+ hint->common. type = WASM_COMPILATION_HINT_BRANCH;
56525652 if (hint_size != 1) {
56535653 set_error_buf_v(error_buf, error_buf_size,
56545654 "invalid branch hint size, expected 1, got %d.",
@@ -5671,6 +5671,7 @@ handle_compilation_hint_branch_hint_processor(const uint8 *buf,
56715671fail:
56725672 return false;
56735673}
5674+
56745675static bool
56755676handle_branch_hint_section(const uint8 *buf, const uint8 *buf_end,
56765677 WASMModule *module, char *error_buf,
@@ -5691,7 +5692,7 @@ handle_compilation_hint_call_targets_processor(
56915692 WASMModule *module)
56925693{
56935694 struct WASMCompilationHintCallTargets *hint = hint_store;
5694- hint->type = WASM_COMPILATION_HINT_CALL_TARGETS;
5695+ hint->common. type = WASM_COMPILATION_HINT_CALL_TARGETS;
56955696 CHECK_BUF(buf, buf_end, hint_size);
56965697 hint->target_count = 0;
56975698
@@ -7634,8 +7635,8 @@ wasm_loader_unload(WASMModule *module)
76347635 struct WASMCompilationHint *last_chain_start = curr;
76357636 while (curr != NULL) {
76367637 if (!curr->used) {
7637- printf ("Unused hint for function %u, offset: %x\n",
7638- i + module->import_count, curr->offset);
7638+ LOG_WARNING ("Unused hint for function %u, offset: %x\n",
7639+ i + module->import_count, curr->offset);
76397640 }
76407641 if (curr->type != last_chain_start->type) {
76417642 // we switched chains -> deallocate previous chain and reset
0 commit comments