From 7b7f1e7af1996809f06bee9e2482eba8842b0061 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Tue, 9 Aug 2016 21:29:49 -0700 Subject: Fixed a bug in call_raxfallback that would cause the call to be omitted completely in the RAX fallback case. This fixes a crash on OpenBSD and possibly other systems --- gen_x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gen_x86.c') diff --git a/gen_x86.c b/gen_x86.c index fec5790..2f5689e 100644 --- a/gen_x86.c +++ b/gen_x86.c @@ -2019,11 +2019,11 @@ void call_raxfallback(code_info *code, code_ptr fun) *(out++) = disp; disp >>= 8; *(out++) = disp; + code->cur = out; } else { mov_ir(code, (int64_t)fun, RAX, SZ_PTR); call_r(code, RAX); } - code->cur = out; } void call_r(code_info *code, uint8_t dst) -- cgit v1.2.3