]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: omit ICE diagnostics after normal error messages
authorMatthew Dempsky <mdempsky@google.com>
Fri, 13 Oct 2017 21:47:45 +0000 (14:47 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Sat, 14 Oct 2017 01:00:31 +0000 (01:00 +0000)
commitf3d4ff7ddc86d2e5f3318fbf8a897edae6da1379
treec98c6b08001bfde4026f2f499ae33ceb1c2247c2
parente01eac371a3a5d62b5e75dbb4b7b6c89bae81569
cmd/compile: omit ICE diagnostics after normal error messages

After we detect errors, the AST is in a precarious state and more
likely to trip useless ICE failures. Instead let the user fix any
existing errors and see if the ICE persists.  This makes Fatalf more
consistent with how panics are handled by hidePanic.

While here, also fix detection for release versions: release version
strings begin with "go" ("go1.8", "go1.9.1", etc), not "release".

Fixes #22252.

Change-Id: I1c400af62fb49dd979b96e1bf0fb295a81c8b336
Reviewed-on: https://go-review.googlesource.com/70850
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/compile/internal/gc/subr.go