diff options
| author | Keith Randall <khr@google.com> | 2019-01-08 13:46:49 -0800 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2019-01-14 22:41:33 +0000 |
| commit | 7502ed3b90eeb4d8f1f9bd781df3517f41ea912c (patch) | |
| tree | f02337be543b5f76ca3e6badfe7236c9a73357b8 /src/encoding/json/encode.go | |
| parent | 70931c087b7ceb660aa969382b8c273efba63426 (diff) | |
| download | go-7502ed3b90eeb4d8f1f9bd781df3517f41ea912c.tar.xz | |
cmd/compile: when merging instructions, prefer line number of faulting insn
Normally this happens when combining a sign extension and a load. We
want the resulting combo-instruction to get the line number of the
load, not the line number of the sign extension.
For each rule, compute where we should get its line number by finding
a value on the match side that can fault. Use that line number for
all the new values created on the right-hand side.
Fixes #27201
Change-Id: I19b3c6f468fff1a3c0bfbce2d6581828557064a3
Reviewed-on: https://go-review.googlesource.com/c/156937
Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/encoding/json/encode.go')
0 files changed, 0 insertions, 0 deletions
