aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2014-03-25 18:01:07 +0100
committerBjörn-Egil Dahlberg <[email protected]>2014-03-25 18:01:07 +0100
commit9e01993aac2cc35c77e5e246ed6e160c3485a456 (patch)
tree53df30499e69545f0b121723fc1131604b6c1f42
parent333f03952f76ed15986eeabb9a386904521821ee (diff)
downloadotp-9e01993aac2cc35c77e5e246ed6e160c3485a456.tar.gz
otp-9e01993aac2cc35c77e5e246ed6e160c3485a456.tar.bz2
otp-9e01993aac2cc35c77e5e246ed6e160c3485a456.zip
compiler: Variable keys are not allowed in Maps
No need to check for variables in Map keys.
-rw-r--r--lib/compiler/src/v3_kernel.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/compiler/src/v3_kernel.erl b/lib/compiler/src/v3_kernel.erl
index d3b785aa14..40d2f72b4c 100644
--- a/lib/compiler/src/v3_kernel.erl
+++ b/lib/compiler/src/v3_kernel.erl
@@ -581,8 +581,7 @@ map_key_clean(#k_literal{val=V}) -> {k_literal,V};
map_key_clean(#k_int{val=V}) -> {k_int,V};
map_key_clean(#k_float{val=V}) -> {k_float,V};
map_key_clean(#k_atom{val=V}) -> {k_atom,V};
-map_key_clean(#k_nil{}) -> k_nil;
-map_key_clean(#k_var{name=V}) -> {k_var,V}.
+map_key_clean(#k_nil{}) -> k_nil.
%% call_type(Module, Function, Arity) -> call | bif | apply | error.