]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: change some unreachable code paths into Fatalf
authorMatthew Dempsky <mdempsky@google.com>
Fri, 2 Dec 2022 00:33:59 +0000 (16:33 -0800)
committerGopher Robot <gobot@golang.org>
Thu, 26 Jan 2023 00:29:56 +0000 (00:29 +0000)
commitde9bffb5f12c4985d8369c39e158fe946f369e82
tree3a609df982e94eb430d9930353163f0da90e83a0
parent532e34dd383549cdb415bc3e09b70d23f280524e
cmd/compile: change some unreachable code paths into Fatalf

Now that GOEXPERIMENT=nounified is removed, we can assume InlineCall
and HaveInlineBody will always be overridden with the unified
frontend's implementations. Similarly, we can assume expandDecl will
never be called.

This CL changes the code paths into Fatalfs, so subsequent CLs can
remove all the unreachable code.

Updates #57410.

Change-Id: I2a0c3edb32916c30dd63c4dce4f1bd6f18e07468
Reviewed-on: https://go-review.googlesource.com/c/go/+/458618
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/inline/inl.go
src/cmd/compile/internal/typecheck/iimport.go
src/cmd/compile/internal/typecheck/typecheck.go