aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/v3_codegen.erl
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2014-03-24 17:48:11 +0100
committerBjörn-Egil Dahlberg <[email protected]>2014-03-24 17:48:11 +0100
commitb7b09745fefe5760d7783b68653a1aa66b1385fd (patch)
tree7f52c289bd5cf9fc1fc14e5e59b15f740148b274 /lib/compiler/src/v3_codegen.erl
parent83e37233bc4fcf5881663d5efb016f6255b496eb (diff)
downloadotp-b7b09745fefe5760d7783b68653a1aa66b1385fd.tar.gz
otp-b7b09745fefe5760d7783b68653a1aa66b1385fd.tar.bz2
otp-b7b09745fefe5760d7783b68653a1aa66b1385fd.zip
compiler: Remove redundant clause in v3_codegen
Multiple 'nil' cannot happen on instruction level. Map keys are always unique with literals.
Diffstat (limited to 'lib/compiler/src/v3_codegen.erl')
-rw-r--r--lib/compiler/src/v3_codegen.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/compiler/src/v3_codegen.erl b/lib/compiler/src/v3_codegen.erl
index f1331d1fe7..3d25c6b764 100644
--- a/lib/compiler/src/v3_codegen.erl
+++ b/lib/compiler/src/v3_codegen.erl
@@ -1553,8 +1553,7 @@ map_pair_strip_and_termsort(Es) ->
Ls = [{K,V}||{_,K,V}<-Es],
lists:sort(fun ({{_,A},_}, {{_,B},_}) -> erts_internal:cmp_term(A,B) =< 0;
({nil,_}, {{_,B},_}) -> [] =< B;
- ({{_,A},_}, {nil,_}) -> A =< [];
- ({nil,_}, {nil,_}) -> true
+ ({{_,A},_}, {nil,_}) -> A =< []
end, Ls).
%%%