From a8510f92e6c2b845c66f1fa428466ed3beafc083 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 22 Nov 2022 13:27:16 -0500 Subject: [PATCH] cmd/compile: fix error message wording CL 450136 fixed a different copy of this error but missed this one. With the compiler fix from CL 451555 rolled back to produce the error, this is the text before this CL: b.go:9:15: internal compiler error: 'init': Value live at entry. It shouldn't be. func init, node a.i, value nil And this CL changes it to: b.go:9:15: internal compiler error: 'init': value a.i (nil) incorrectly live at entry matching the same change in the earlier CL. Change-Id: I33e6b91477e1a213a6918c3ebdea81273be7d235 Reviewed-on: https://go-review.googlesource.com/c/go/+/452816 Run-TryBot: Russ Cox Reviewed-by: David Chase TryBot-Result: Gopher Robot --- src/cmd/compile/internal/ssagen/ssa.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/compile/internal/ssagen/ssa.go b/src/cmd/compile/internal/ssagen/ssa.go index c6d6e0deee..aec826dc27 100644 --- a/src/cmd/compile/internal/ssagen/ssa.go +++ b/src/cmd/compile/internal/ssagen/ssa.go @@ -6525,7 +6525,7 @@ func (s *state) variable(n ir.Node, t *types.Type) *ssa.Value { if s.curBlock == s.f.Entry { // No variable should be live at entry. - s.Fatalf("Value live at entry. It shouldn't be. func %s, node %v, value %v", s.f.Name, n, v) + s.f.Fatalf("value %v (%v) incorrectly live at entry", n, v) } // Make a FwdRef, which records a value that's live on block input. // We'll find the matching definition as part of insertPhis. -- 2.50.0