]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: try to preserve IsStmt marks from OpConvert
authorDavid Chase <drchase@google.com>
Tue, 23 Nov 2021 18:29:13 +0000 (13:29 -0500)
committerDavid Chase <drchase@google.com>
Wed, 8 Dec 2021 18:30:00 +0000 (18:30 +0000)
commit61011de1af0bc6ab286c4722632719d3da2cf746
treec38965a5adef8c19ccd3f4feeb7a6f7ba47a0db7
parent7b7efd7a7c952f8b372c861c94acd159ee371acb
cmd/compile: try to preserve IsStmt marks from OpConvert

Note when a statement mark was not consumed during Prog
generation, and try to use it on a subsequent opcode so
that the statement marker will not be lost.

And a test.

Fixes #49628.

Change-Id: I03f7782a9809cc4a0a5870df92b3e182cf124554
Reviewed-on: https://go-review.googlesource.com/c/go/+/366694
Trust: David Chase <drchase@google.com>
Run-TryBot: David Chase <drchase@google.com>
Trust: Dan Scales <danscales@google.com>
Reviewed-by: Dan Scales <danscales@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/ssa/debug_lines_test.go
src/cmd/compile/internal/ssa/testdata/convertline.go [new file with mode: 0644]
src/cmd/compile/internal/ssagen/ssa.go