]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: make check2 gracefully exit if it reported errors
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Sun, 21 Feb 2021 15:27:19 +0000 (22:27 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Thu, 4 Mar 2021 06:36:33 +0000 (06:36 +0000)
commit868a110c568591d9085996ba05c94593809a437a
tree1f70e3ba29f5d8662c6c99576376643534dea86f
parent1d0256a9890b9179746551910a20cee97e653101
cmd/compile: make check2 gracefully exit if it reported errors

Otherwise, if -d=panic was set, check2 will treat already reported
error as internal compiler error.

For #43311
Fixes #44445

Change-Id: I5dbe06334666df21d9107396b9dcfdd905aa1e44
Reviewed-on: https://go-review.googlesource.com/c/go/+/294850
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/noder/irgen.go
test/fixedbugs/bug188.go
test/fixedbugs/bug358.go
test/fixedbugs/bug397.go