mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
57107f300a
commit
50520f1543
12 changed files with 36 additions and 40 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue