Refine aot exception throw, remove unnecessary labels (#456)

This commit is contained in:
Wenyong Huang
2020-11-30 17:57:22 +08:00
committed by GitHub
parent 0700dc9cd4
commit 591e4ce536
4 changed files with 5 additions and 75 deletions

View File

@ -1770,13 +1770,6 @@ build_atomic_rmw:
if (last_block != func_ctx->got_exception_block)
LLVMMoveBasicBlockAfter(func_ctx->got_exception_block,
last_block);
/* Move all other exception blocks before got_exception block */
for (i = 0; i < EXCE_NUM; i++) {
if (func_ctx->exception_blocks[i])
LLVMMoveBasicBlockBefore(func_ctx->exception_blocks[i],
func_ctx->got_exception_block);
}
}
return true;