# HG changeset patch # User Michael Pavone # Date 1470803389 25200 # Node ID cd6048e0397b2c629c41bc607cbec6b6988f90ba # Parent 0fff9bf3a3ee2657cfe7865c25bbcf83a2414a1f 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 diff -r 0fff9bf3a3ee -r cd6048e0397b gen_x86.c --- a/gen_x86.c Sat Aug 06 07:41:01 2016 -0700 +++ b/gen_x86.c Tue Aug 09 21:29:49 2016 -0700 @@ -2019,11 +2019,11 @@ *(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)