aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/hipe/hipe_amd64.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_amd64.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_amd64.c')
-rw-r--r--erts/emulator/hipe/hipe_amd64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/hipe/hipe_amd64.c b/erts/emulator/hipe/hipe_amd64.c
index 3173afad0a..e3cff4a4ba 100644
--- a/erts/emulator/hipe/hipe_amd64.c
+++ b/erts/emulator/hipe/hipe_amd64.c
@@ -73,8 +73,8 @@ int hipe_patch_call(void *callAddress, void *destAddress, void *trampoline)
{
Sint rel32;
- if (trampoline)
- return -1;
+ ASSERT(trampoline == NULL);
+
rel32 = (Sint)destAddress - (Sint)callAddress - 4;
if ((Sint)(Sint32)rel32 != rel32)
return -1;