]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't panic when printing package-less symbols
authorKeith Randall <khr@golang.org>
Wed, 9 Feb 2022 19:42:54 +0000 (11:42 -0800)
committerKeith Randall <khr@golang.org>
Tue, 1 Mar 2022 18:12:19 +0000 (18:12 +0000)
commitd81464e1eb69faab8bcf04015575d8a491e882b5
tree28dc7bd81318f6e53819180535cc3c81d71bb842
parent21998413ad82655fef1f31316db31e23e0684b21
cmd/compile: don't panic when printing package-less symbols

Some of the SSA pseudo-variables like the memory variable don't
have a package. Print those gracefully instead of printing a panic.

Fixes #51108

Change-Id: I5c29029356e045c5cf70909d6e63666ebc58ffaa
Reviewed-on: https://go-review.googlesource.com/c/go/+/384614
Trust: Keith Randall <khr@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/types/fmt.go