diff options
author | Björn Gustavsson <[email protected]> | 2015-11-20 14:26:35 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-11-20 14:26:35 +0100 |
commit | 53bfaec70f9f6daaae079a1c5cd852f4df214b57 (patch) | |
tree | 4d1dd662a7f6ad2b7f5b7160a23c9daa0df1206a /lib/compiler/src | |
parent | 0bb72a96b95e856b4d4e12f6fb7ae73118259aba (diff) | |
parent | d4bb044cb5359c6d4bffe3efcb8256cf7199bdf3 (diff) | |
download | otp-53bfaec70f9f6daaae079a1c5cd852f4df214b57.tar.gz otp-53bfaec70f9f6daaae079a1c5cd852f4df214b57.tar.bz2 otp-53bfaec70f9f6daaae079a1c5cd852f4df214b57.zip |
Merge branch 'bjorn/compiler/fix-missing-filename/OTP-13113' into maint
* bjorn/compiler/fix-missing-filename/OTP-13113:
Fix missing filename and line number in warning
Diffstat (limited to 'lib/compiler/src')
-rw-r--r-- | lib/compiler/src/sys_core_fold.erl | 6 |
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 27d023d067..65699ccda9 100644 --- a/lib/compiler/src/sys_core_fold.erl +++ b/lib/compiler/src/sys_core_fold.erl @@ -3091,12 +3091,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. |