compiler: don't insert write barriers if we've seen errors
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 29 Jan 2018 20:58:23 +0000 (20:58 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 29 Jan 2018 20:58:23 +0000 (20:58 +0000)
commit74d82e6b688546121764363c154af4bfe2d480f1
treecea9966958f939db1ea3448f9452e7a5c89bb6e4
parentdcbb27dd3f494812c89b530b7dcf06cfad2ff10b
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.

    Reviewed-on: https://go-review.googlesource.com/90575

From-SVN: r257163
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/wb.cc