diff options
author | Björn Gustavsson <[email protected]> | 2016-06-28 10:00:44 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-09-21 14:07:53 +0200 |
commit | 9d41dad0b3e2ec310375634ec48e677467296b1b (patch) | |
tree | 7bf4ecb9641a452c4eb7f8676755b916beacca36 /lib/compiler/src/beam_validator.erl | |
parent | 6a7f1675e84bef3f780f212bd3ce74898aebc7ab (diff) | |
download | otp-9d41dad0b3e2ec310375634ec48e677467296b1b.tar.gz otp-9d41dad0b3e2ec310375634ec48e677467296b1b.tar.bz2 otp-9d41dad0b3e2ec310375634ec48e677467296b1b.zip |
beam_validator: Correct reporting of y register number
The error would be:
{multiple_match_contexts,[{x,0},2]}
instead of:
{multiple_match_contexts,[{x,0},{y,2}]}
Diffstat (limited to 'lib/compiler/src/beam_validator.erl')
-rw-r--r-- | lib/compiler/src/beam_validator.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/beam_validator.erl b/lib/compiler/src/beam_validator.erl index ffd136c6db..6e53f53a20 100644 --- a/lib/compiler/src/beam_validator.erl +++ b/lib/compiler/src/beam_validator.erl @@ -909,7 +909,7 @@ all_ms_in_x_regs(Live0, Vst) -> ms_in_y_regs(Id, #vst{current=#st{y=Ys0}}) -> Ys = gb_trees:to_list(Ys0), - [Y || {Y,#ms{id=OtherId}} <- Ys, OtherId =:= Id]. + [{y,Y} || {Y,#ms{id=OtherId}} <- Ys, OtherId =:= Id]. verify_call_match_context(Lbl, Ctx, #vst{ft=Ft}) -> case gb_trees:lookup(Lbl, Ft) of |