We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5586f7b commit 1dcc59fCopy full SHA for 1dcc59f
1 file changed
core/iwasm/fast-jit/jit_ir.c
@@ -474,8 +474,10 @@ jit_cc_destroy(JitCompContext *cc)
474
}
475
476
/* Release entry and exit blocks. */
477
- jit_basic_block_delete(jit_cc_entry_basic_block(cc));
478
- jit_basic_block_delete(jit_cc_exit_basic_block(cc));
+ if (0 != cc->entry_label)
+ jit_basic_block_delete(jit_cc_entry_basic_block(cc));
479
+ if (0 != cc->exit_label)
480
+ jit_basic_block_delete(jit_cc_exit_basic_block(cc));
481
482
/* clang-format off */
483
/* Release blocks and instructions. */
0 commit comments