aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2018-08-13 10:28:55 +0200
committerGitHub <[email protected]>2018-08-13 10:28:55 +0200
commit1f89845db0b880b5b3599982223427cc16c411df (patch)
treeff2cf1ba554844b79feb99ad66f8e2a4b6cea892 /lib/compiler/src
parenta79c54889fc0de5c3cd919fb08e93d98b819ba3c (diff)
parent7e1eb2ed1f724945884d839bd8a99154e9382849 (diff)
downloadotp-1f89845db0b880b5b3599982223427cc16c411df.tar.gz
otp-1f89845db0b880b5b3599982223427cc16c411df.tar.bz2
otp-1f89845db0b880b5b3599982223427cc16c411df.zip
Merge pull request #1919 from bjorng/bjorn/compiler/fix-is_map_key/OTP-15227
Correct error behavior of is_map_key/2 in guards
Diffstat (limited to 'lib/compiler/src')
-rw-r--r--lib/compiler/src/v3_codegen.erl5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/compiler/src/v3_codegen.erl b/lib/compiler/src/v3_codegen.erl
index 6cd114abf7..e9152ba88f 100644
--- a/lib/compiler/src/v3_codegen.erl
+++ b/lib/compiler/src/v3_codegen.erl
@@ -1621,11 +1621,6 @@ test_cg(is_boolean, [#k_atom{val=Val}], Fail, I, Vdb, Bef, St) ->
false -> [{jump,{f,Fail}}]
end,
{Is,Aft,St};
-test_cg(is_map_key, As, Fail, I, Vdb, Bef, St) ->
- [Key,Map] = cg_reg_args(As, Bef),
- Aft = clear_dead(Bef, I, Vdb),
- F = {f,Fail},
- {[{test,is_map,F,[Map]},{test,has_map_fields,F,Map,{list,[Key]}}],Aft,St};
test_cg(Test, As, Fail, I, Vdb, Bef, St) ->
Args = cg_reg_args(As, Bef),
Aft = clear_dead(Bef, I, Vdb),