aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/cerl_trees.erl
diff options
context:
space:
mode:
authorMagnus Lång <[email protected]>2014-06-05 12:12:03 +0200
committerMagnus Lång <[email protected]>2015-10-26 15:37:39 +0100
commitcc1026a0e646b3a21b7bd7930fb7294425f1d79b (patch)
tree356e2aaf1c5d3f6e3285a95233f017487dd15a14 /lib/compiler/src/cerl_trees.erl
parenta76cc1d337c0bf44ecefebeccac2d08e496ba7e8 (diff)
downloadotp-cc1026a0e646b3a21b7bd7930fb7294425f1d79b.tar.gz
otp-cc1026a0e646b3a21b7bd7930fb7294425f1d79b.tar.bz2
otp-cc1026a0e646b3a21b7bd7930fb7294425f1d79b.zip
Fix cerl_trees:label/2 bug with map K/V swap
Diffstat (limited to 'lib/compiler/src/cerl_trees.erl')
-rw-r--r--lib/compiler/src/cerl_trees.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compiler/src/cerl_trees.erl b/lib/compiler/src/cerl_trees.erl
index 2c9b72a30b..58bb18e34a 100644
--- a/lib/compiler/src/cerl_trees.erl
+++ b/lib/compiler/src/cerl_trees.erl
@@ -731,8 +731,8 @@ label(T, N, Env) ->
{ann_c_map(As, M, Ts), N3};
map_pair ->
{Op, N1} = label(map_pair_op(T), N, Env),
- {Val, N2} = label(map_pair_key(T), N1, Env),
- {Key, N3} = label(map_pair_val(T), N2, Env),
+ {Key, N2} = label(map_pair_key(T), N1, Env),
+ {Val, N3} = label(map_pair_val(T), N2, Env),
{As, N4} = label_ann(T, N3),
{ann_c_map_pair(As,Op,Key,Val), N4};
'let' ->