]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix printing of untyped types in -W output
authorMatthew Dempsky <mdempsky@google.com>
Wed, 14 Feb 2018 21:51:51 +0000 (13:51 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 14 Feb 2018 22:18:07 +0000 (22:18 +0000)
commitc3e8da67dd79d84ac04187b5ce577d76d4e0c032
tree1782c57919393b0b0e92610f03f24446a55b7d42
parentbeeab6ac02754a3fc0272425ebcc0df42f60c868
cmd/compile: fix printing of untyped types in -W output

It's always useful to distinguish "bool" and "string" from "untyped
bool" and "untyped string", so change typefmt to do this
unconditionally.

Also, while here, replace a bare 0 with its named constant FErr.

Fixes #23833.

Change-Id: I3fcb8d7204686937439caaaf8b3973fc236d0387
Reviewed-on: https://go-review.googlesource.com/94021
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/fmt.go