aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/hipe/hipe_x86.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-10-14 14:43:22 +0200
committerSverker Eriksson <[email protected]>2016-10-14 14:43:22 +0200
commit8bb80fe76f5b4debe981e42ba70260c5a12b250f (patch)
tree54994b20f2d65c04cee599f769e06abb33e289e5 /erts/emulator/hipe/hipe_x86.c
parentdf9e09fc1f938f9902052dcb896b42558ee9779d (diff)
downloadotp-8bb80fe76f5b4debe981e42ba70260c5a12b250f.tar.gz
otp-8bb80fe76f5b4debe981e42ba70260c5a12b250f.tar.bz2
otp-8bb80fe76f5b4debe981e42ba70260c5a12b250f.zip
erts: Cleanup hipe trampoline code
Diffstat (limited to 'erts/emulator/hipe/hipe_x86.c')
-rw-r--r--erts/emulator/hipe/hipe_x86.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/hipe/hipe_x86.c b/erts/emulator/hipe/hipe_x86.c
index b091bee6fb..c7e24673ac 100644
--- a/erts/emulator/hipe/hipe_x86.c
+++ b/erts/emulator/hipe/hipe_x86.c
@@ -61,8 +61,8 @@ int hipe_patch_call(void *callAddress, void *destAddress, void *trampoline)
{
Uint rel32;
- if (trampoline)
- return -1;
+ ASSERT(trampoline == NULL);
+
rel32 = (Uint)destAddress - (Uint)callAddress - 4;
*(Uint32*)callAddress = rel32;
hipe_flush_icache_word(callAddress);