AArch64: Remove redundant memory unmap #12688

This commit is contained in:
Dmitry Stogov 2023-11-16 11:50:57 +03:00
parent ea2de69592
commit 5e9d41f6b4

View File

@ -5357,9 +5357,6 @@ void *ir_emit_code(ir_ctx *ctx, size_t *size_ptr)
if (ret != DASM_S_OK) {
IR_ASSERT(0);
dasm_free(&data.dasm_state);
if (ctx->code_buffer == NULL) {
ir_mem_unmap(entry, size);
}
ctx->data = NULL;
ctx->status = IR_ERROR_LINK;
return NULL;