aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuuk van Dijk <lvd@golang.org>2012-01-17 10:01:12 +0100
committerLuuk van Dijk <lvd@golang.org>2012-01-17 10:01:12 +0100
commit4e78818259bb9c43d7bc65ae3c15e935d3727770 (patch)
treea567677faf625903c206190d0082915195009f26
parent9523b4d59c9a902abce9c584ded795376d875d1b (diff)
downloadgo-4e78818259bb9c43d7bc65ae3c15e935d3727770.tar.xz
gc: give esc.c's sink an orig so -mm diagnostics work again.
R=rsc CC=golang-dev https://golang.org/cl/5543063
-rw-r--r--src/cmd/gc/esc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/gc/esc.c b/src/cmd/gc/esc.c
index 43986c6af2..7e20457d9a 100644
--- a/src/cmd/gc/esc.c
+++ b/src/cmd/gc/esc.c
@@ -64,6 +64,7 @@ escapes(void)
NodeList *l;
theSink.op = ONAME;
+ theSink.orig = &theSink;
theSink.class = PEXTERN;
theSink.sym = lookup(".sink");
theSink.escloopdepth = -1;