aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2018-07-18 14:19:23 +0200
committerErlang/OTP <[email protected]>2018-07-18 14:19:23 +0200
commit5779b53086acccbf9b1dd6001bba018d47dd743c (patch)
treea54af4d7fb25d43e0115399687c6a0ac9dbe8d56 /erts/emulator/beam
parent9b351732d90d5d7a159509dec6dc36aefb75699f (diff)
parent32d674c58ba0cfddb2d5e2e83a8bf3b9a70cce4d (diff)
downloadotp-5779b53086acccbf9b1dd6001bba018d47dd743c.tar.gz
otp-5779b53086acccbf9b1dd6001bba018d47dd743c.tar.bz2
otp-5779b53086acccbf9b1dd6001bba018d47dd743c.zip
Merge branch 'john/erts/fix-literal-map-elements/OTP-15184' into maint-21
* john/erts/fix-literal-map-elements/OTP-15184: Fix a rare crash when matching on literal maps
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r--erts/emulator/beam/ops.tab5
1 files changed, 1 insertions, 4 deletions
diff --git a/erts/emulator/beam/ops.tab b/erts/emulator/beam/ops.tab
index 88ede3bb60..c51e4ef784 100644
--- a/erts/emulator/beam/ops.tab
+++ b/erts/emulator/beam/ops.tab
@@ -1421,16 +1421,13 @@ get_map_elements Fail Src Size Rest=* | map_key_sort(Size, Rest) => \
i_get_map_elements f? s I
-i_get_map_element Fail Src=xy Key=y Dst => \
- move Key x | i_get_map_element Fail Src x Dst
-
i_get_map_element_hash Fail Src=c Key Hash Dst => \
move Src x | i_get_map_element_hash Fail x Key Hash Dst
i_get_map_element_hash f? xy c I xy
i_get_map_element Fail Src=c Key Dst => \
move Src x | i_get_map_element Fail x Key Dst
-i_get_map_element f? xy x xy
+i_get_map_element f? xy xy xy
#
# Convert the plus operations to a generic plus instruction.