aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-10-05 10:50:11 +0200
committerBjörn Gustavsson <[email protected]>2017-10-05 11:43:44 +0200
commit4ab349bd590403edb42bb8972f881b5921bf257f (patch)
tree84cd4c1a5711cd333a99d68675b68873c098b514 /erts
parent49d0857634fc1a990ab97a144787288570fa2507 (diff)
downloadotp-4ab349bd590403edb42bb8972f881b5921bf257f.tar.gz
otp-4ab349bd590403edb42bb8972f881b5921bf257f.tar.bz2
otp-4ab349bd590403edb42bb8972f881b5921bf257f.zip
macros.tab: Fix assertion in SET_I_REL()
9a50a5d5fc1 changed the update of I, but forgot to update the preceding assertion.
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/beam/macros.tab2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/macros.tab b/erts/emulator/beam/macros.tab
index 0d175a7ec6..e0b5f56b53 100644
--- a/erts/emulator/beam/macros.tab
+++ b/erts/emulator/beam/macros.tab
@@ -38,7 +38,7 @@ REFRESH_GEN_DEST() {
// zero, except in a few bit syntax instructions.)
SET_I_REL(Offset) {
- ASSERT(VALID_INSTR(*(I + ($Offset))));
+ ASSERT(VALID_INSTR(*(I + ($Offset) + $IP_ADJUSTMENT)));
I += $Offset + $IP_ADJUSTMENT;
}