commit | 6517e6731aeb4512d12c341c7111959a44547ba0 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Mon Jan 29 10:07:27 2018 -0800 |
committer | Ian Lance Taylor <iant@golang.org> | Mon Jan 29 20:57:38 2018 +0000 |
tree | 1e97807e62447158e2ae2354fa6510be2e878935 | |
parent | 4164071703c531b5234b790b76df4931c37a8d9c [diff] |
compiler: don't insert write barriers if we've seen errors The compiler skips the escape analysis pass if it has seen any errors. The write barrier pass, especially the check-escapes portion, relies on escape analysis running. So don't run this pass if there have been any errors, as it may cause further unreliable error reports. Change-Id: Ic8c0e86c1b2109d109efa312261b3e84578f18ec Reviewed-on: https://go-review.googlesource.com/90575 Reviewed-by: Cherry Zhang <cherryyz@google.com>