aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2014-03-06 19:06:25 +0100
committerBjörn-Egil Dahlberg <[email protected]>2014-03-17 17:47:35 +0100
commit54a53c31e4bff25aef79d1624361b52407f572ab (patch)
tree7e949408d31b0c046fbb4ac67af4442a73218993 /erts/emulator/beam
parent70c968442a8e2afbae7fa485527920006bfe2031 (diff)
downloadotp-54a53c31e4bff25aef79d1624361b52407f572ab.tar.gz
otp-54a53c31e4bff25aef79d1624361b52407f572ab.tar.bz2
otp-54a53c31e4bff25aef79d1624361b52407f572ab.zip
erts: Handle literals in is_map/1
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r--erts/emulator/beam/ops.tab3
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/emulator/beam/ops.tab b/erts/emulator/beam/ops.tab
index 73630fda8e..68fcc177ae 100644
--- a/erts/emulator/beam/ops.tab
+++ b/erts/emulator/beam/ops.tab
@@ -1484,7 +1484,8 @@ new_map j d I I
update_map_assoc j s d I I
update_map_exact j s d I I
-is_map Fail cq => jump Fail
+is_map Fail Literal=q => move Literal x | is_map Fail x
+is_map Fail c => jump Fail
%macro: is_map IsMap -fail_action
is_map f r