aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/beam_disasm.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compiler/src/beam_disasm.erl')
-rw-r--r--lib/compiler/src/beam_disasm.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/compiler/src/beam_disasm.erl b/lib/compiler/src/beam_disasm.erl
index 57fdf95677..3f5e9df5fd 100644
--- a/lib/compiler/src/beam_disasm.erl
+++ b/lib/compiler/src/beam_disasm.erl
@@ -1151,12 +1151,12 @@ resolve_inst({is_map,Args0},_,_,_) ->
{test, is_map, FLbl, Args};
resolve_inst({has_map_field,Args0},_,_,_) ->
- [FLbl|Args] = resolve_args(Args0),
- {test,has_map_field,FLbl,Args};
+ [FLbl,Src,{u,_Len}|Args] = resolve_args(Args0),
+ {test,has_map_field,FLbl,Src,{list,Args}};
-resolve_inst({get_map_element,Args},_,_,_) ->
- [FLbl,Src,Key,Dst] = resolve_args(Args),
- {get_map_element,FLbl,Src,Key,Dst};
+resolve_inst({get_map_element,Args0},_,_,_) ->
+ [FLbl,Src,{u,_Len}|Args] = resolve_args(Args0),
+ {get_map_element,FLbl,Src,{list,Args}};
%%
%% Catches instructions that are not yet handled.