diff options
Diffstat (limited to '')
-rw-r--r-- | src/lj_emit_x86.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_emit_x86.h b/src/lj_emit_x86.h index 66750a96..9173a299 100644 --- a/src/lj_emit_x86.h +++ b/src/lj_emit_x86.h | |||
@@ -45,7 +45,7 @@ static LJ_AINLINE MCode *emit_op(x86Op xo, Reg rr, Reg rb, Reg rx, | |||
45 | *(uint32_t *)(p+delta-5) = (uint32_t)xo; | 45 | *(uint32_t *)(p+delta-5) = (uint32_t)xo; |
46 | return p+delta-5; | 46 | return p+delta-5; |
47 | } | 47 | } |
48 | #if defined(__GNUC__) | 48 | #if defined(__GNUC__) || defined(__clang__) |
49 | if (__builtin_constant_p(xo) && n == -2) | 49 | if (__builtin_constant_p(xo) && n == -2) |
50 | p[delta-2] = (MCode)(xo >> 24); | 50 | p[delta-2] = (MCode)(xo >> 24); |
51 | else if (__builtin_constant_p(xo) && n == -3) | 51 | else if (__builtin_constant_p(xo) && n == -3) |