aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-11-20 14:38:18 +0100
committerBjörn Gustavsson <[email protected]>2015-11-20 14:38:18 +0100
commitd0c318e908ab7538d5c7313a96266706ba9bafcb (patch)
tree2dba00552ac5051d6daf9d56cd84a8c87b10fc4e /lib/compiler/src
parente220fd51f4688d39eb8833e269c64cae24935f6e (diff)
parent53bfaec70f9f6daaae079a1c5cd852f4df214b57 (diff)
downloadotp-d0c318e908ab7538d5c7313a96266706ba9bafcb.tar.gz
otp-d0c318e908ab7538d5c7313a96266706ba9bafcb.tar.bz2
otp-d0c318e908ab7538d5c7313a96266706ba9bafcb.zip
Merge branch 'maint'
* maint: Fix missing filename and line number in warning Conflicts: lib/compiler/test/bs_match_SUITE.erl
Diffstat (limited to 'lib/compiler/src')
-rw-r--r--lib/compiler/src/sys_core_fold.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/compiler/src/sys_core_fold.erl b/lib/compiler/src/sys_core_fold.erl
index 0a16776bd4..43ce9a7172 100644
--- a/lib/compiler/src/sys_core_fold.erl
+++ b/lib/compiler/src/sys_core_fold.erl
@@ -3097,12 +3097,12 @@ bsm_ensure_no_partition_2([#c_var{name=V}|Ps], N, G, Vstate, S) ->
bsm_ensure_no_partition_2([_|Ps], N, G, _, S) ->
bsm_ensure_no_partition_2(Ps, N-1, G, bin_argument_order, S).
-bsm_ensure_no_partition_after([#c_clause{pats=Ps}|Cs], Pos) ->
+bsm_ensure_no_partition_after([#c_clause{pats=Ps}=C|Cs], Pos) ->
case nth(Pos, Ps) of
#c_var{} ->
bsm_ensure_no_partition_after(Cs, Pos);
- P ->
- bsm_problem(P, bin_partition)
+ _ ->
+ bsm_problem(C, bin_partition)
end;
bsm_ensure_no_partition_after([], _) -> ok.