aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-11-10 12:50:08 +0100
committerBjörn Gustavsson <[email protected]>2015-11-10 13:04:56 +0100
commit624638e6668dcf51f6b616de5fc7c9ff1aa77bcf (patch)
tree76d619ac29adc5690d4384a5a02fc5ff6a19b3f6 /lib/compiler
parentf51512fadee8f9ef817bfc0af8ba92a532f8def2 (diff)
downloadotp-624638e6668dcf51f6b616de5fc7c9ff1aa77bcf.tar.gz
otp-624638e6668dcf51f6b616de5fc7c9ff1aa77bcf.tar.bz2
otp-624638e6668dcf51f6b616de5fc7c9ff1aa77bcf.zip
sys_pre_expand: Remove uncovered clause in pat_bit_size/2
The atom 'all' can never occur in a size field before sys_pre_expand has been run.
Diffstat (limited to 'lib/compiler')
-rw-r--r--lib/compiler/src/sys_pre_expand.erl1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/compiler/src/sys_pre_expand.erl b/lib/compiler/src/sys_pre_expand.erl
index 21961bc020..150a453eec 100644
--- a/lib/compiler/src/sys_pre_expand.erl
+++ b/lib/compiler/src/sys_pre_expand.erl
@@ -532,7 +532,6 @@ pattern_element({bin_element,Line,Expr0,Size0,Type0}, {Es,St0}) ->
{[{bin_element,Line,Expr,Size,Type}|Es],St2}.
pat_bit_size(default, St) -> {default,St};
-pat_bit_size({atom,_La,all}=All, St) -> {All,St};
pat_bit_size({var,_Lv,_V}=Var, St) -> {Var,St};
pat_bit_size(Size, St) ->
Line = element(2, Size),