aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2013-09-25 18:17:58 +0200
committerBjörn-Egil Dahlberg <[email protected]>2014-01-28 15:56:26 +0100
commit1b701e059c36154d88caa24c4aaa68a2d19971cf (patch)
tree52ee8a0409280d8ec1507bcd3747c7393ee5c4a0 /lib/compiler
parentbe782d05bcd259b229efcac47c0566e4026cf1f6 (diff)
downloadotp-1b701e059c36154d88caa24c4aaa68a2d19971cf.tar.gz
otp-1b701e059c36154d88caa24c4aaa68a2d19971cf.tar.bz2
otp-1b701e059c36154d88caa24c4aaa68a2d19971cf.zip
compiler: Fix multiple same keys
Diffstat (limited to 'lib/compiler')
-rw-r--r--lib/compiler/src/v3_kernel.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/compiler/src/v3_kernel.erl b/lib/compiler/src/v3_kernel.erl
index 3d2dbf2088..f4ba60e529 100644
--- a/lib/compiler/src/v3_kernel.erl
+++ b/lib/compiler/src/v3_kernel.erl
@@ -1467,7 +1467,9 @@ arg_val(Arg, C) ->
#k_map_pair{key=#k_literal{val=Key}} = Pair,
Key
end || Pair <- Es],
- ordsets:from_list(Keys)
+ %% multiple keys may have the same name
+ %% do not use ordsets
+ lists:sort(Keys)
end.
%% ubody_used_vars(Expr, State) -> [UsedVar]