diff options
author | Björn Gustavsson <[email protected]> | 2015-11-10 12:50:08 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-11-10 13:04:56 +0100 |
commit | 624638e6668dcf51f6b616de5fc7c9ff1aa77bcf (patch) | |
tree | 76d619ac29adc5690d4384a5a02fc5ff6a19b3f6 /lib/compiler/src/sys_pre_expand.erl | |
parent | f51512fadee8f9ef817bfc0af8ba92a532f8def2 (diff) | |
download | otp-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/src/sys_pre_expand.erl')
-rw-r--r-- | lib/compiler/src/sys_pre_expand.erl | 1 |
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), |