]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: terminate compilation if type-checking fails
authorRobert Griesemer <gri@golang.org>
Tue, 5 Jun 2018 17:19:03 +0000 (10:19 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 6 Jun 2018 00:15:51 +0000 (00:15 +0000)
commitd159d6108c4d7ba962bb6eea13f06590a76ac9e8
treea9c7dc0e24e8f9293dd6cc414568b0f7b06d9d32
parentb0951aff8f6a004fc2e73fdb98350125daea6c05
cmd/compile: terminate compilation if type-checking fails

There is no benefit in continuing compilation if there
are type-checking errors. This will increase robustness
of the compiler in the presence of errors.

Fixes #22909.

Change-Id: I1c70c667e5927646ba3d0f370e33705165620f12
Reviewed-on: https://go-review.googlesource.com/116335
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/compile/internal/gc/main.go