aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-04-19 13:32:05 +0200
committerBjörn Gustavsson <[email protected]>2016-04-21 12:42:01 +0200
commitb5d290306a9be6a22e63df34456a880074b324cc (patch)
treeb8ce66133e68aed82be513495842e0a834e1f60b
parent232cb70f33fa2618412b814b8f9aa78d1d20ef25 (diff)
downloadotp-b5d290306a9be6a22e63df34456a880074b324cc.tar.gz
otp-b5d290306a9be6a22e63df34456a880074b324cc.tar.bz2
otp-b5d290306a9be6a22e63df34456a880074b324cc.zip
v3_core: Construct {badmap,Map} as literal if possible
-rw-r--r--lib/compiler/src/v3_core.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/v3_core.erl b/lib/compiler/src/v3_core.erl
index de775097e3..3299149457 100644
--- a/lib/compiler/src/v3_core.erl
+++ b/lib/compiler/src/v3_core.erl
@@ -784,7 +784,7 @@ badmap_term(_Map, #core{in_guard=true}) ->
%% since it is not user-visible.
#c_literal{val=badmap};
badmap_term(Map, #core{in_guard=false}) ->
- #c_tuple{es=[#c_literal{val=badmap},Map]}.
+ c_tuple([#c_literal{val=badmap},Map]).
map_build_pairs(Map, Es0, Ann, St0) ->
{Es,Pre,St1} = map_build_pairs_1(Es0, St0),