cmd/compile: use Fatalf for more internal errors

There were a surprising number of places
in the tree that used yyerror for failed internal
consistency checks. Switch them to Fatalf.

Updates #15756
Updates #19250

Change-Id: Ie4278148185795a28ff3c27dacffc211cda5bbdd
Reviewed-on: https://go-review.googlesource.com/38153
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
Josh Bleecher Snyder 2017-03-14 09:46:45 -07:00
parent 57107f300a
commit 50520f1543
12 changed files with 36 additions and 40 deletions

View file

@ -192,8 +192,7 @@ func tempname(nn *Node, t *Type) {
}
if t == nil {
yyerror("tempname called with nil type")
t = Types[TINT32]
Fatalf("tempname called with nil type")
}
// give each tmp a different name so that there