1
0
mirror of https://github.com/golang/go synced 2024-11-23 16:50:06 -07:00

cmd/internal/gc: remove incorrect "write barrier prohibited" error

Commit 9c9e36b pushed these errors down to where the write barriers
are actually emitted, but forgot to remove the original error that was
being pushed down.

Change-Id: I751752a896e78fb9e63d69f88e7fb8d1ff5d344c
Reviewed-on: https://go-review.googlesource.com/10264
Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
Austin Clements 2015-05-19 16:58:14 -04:00
parent b3241912ff
commit f763da3d34

View File

@ -2206,9 +2206,6 @@ var applywritebarrier_bv Bvec
func applywritebarrier(n *Node, init **NodeList) *Node { func applywritebarrier(n *Node, init **NodeList) *Node {
if n.Left != nil && n.Right != nil && needwritebarrier(n.Left, n.Right) { if n.Left != nil && n.Right != nil && needwritebarrier(n.Left, n.Right) {
if Curfn != nil && Curfn.Func.Nowritebarrier {
Yyerror("write barrier prohibited")
}
if flag_race == 0 { if flag_race == 0 {
if Debug_wb > 1 { if Debug_wb > 1 {
Warnl(int(n.Lineno), "marking %v for barrier", Nconv(n.Left, 0)) Warnl(int(n.Lineno), "marking %v for barrier", Nconv(n.Left, 0))