aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Cheney <dave@cheney.net>2015-04-08 01:24:17 +1000
committerDave Cheney <dave@cheney.net>2015-04-07 15:44:34 +0000
commitd6b40698528c94f3d0d3e263d5713994cebfb3a6 (patch)
tree024381dbc9d83e400351c40c4b2e7738e783cc3f /src
parent92c826b1b2473e743964d3478b73a9c39a579abf (diff)
downloadgo-d6b40698528c94f3d0d3e263d5713994cebfb3a6.tar.xz
cmd/internal/gc: fix race build
Add special case for OGETG which should never be instrumented. Change-Id: I7d082abb8608537f82b03362b687baf2a1d809dc Reviewed-on: https://go-review.googlesource.com/8551 Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/internal/gc/racewalk.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/internal/gc/racewalk.go b/src/cmd/internal/gc/racewalk.go
index e054f47a17..7ae1c55192 100644
--- a/src/cmd/internal/gc/racewalk.go
+++ b/src/cmd/internal/gc/racewalk.go
@@ -410,6 +410,9 @@ func racewalknode(np **Node, init **NodeList, wr int, skip int) {
OLABEL:
goto ret
+ case OGETG:
+ Yyerror("racewalk: OGETG can happen only in runtime which we don't instrument")
+
// does not require instrumentation
case OPRINT, // don't bother instrumenting it
OPRINTN, // don't bother instrumenting it