]> Cypherpunks repositories - gostls13.git/commitdiff
gc: give esc.c's sink an orig so -mm diagnostics work again.
authorLuuk van Dijk <lvd@golang.org>
Tue, 17 Jan 2012 09:01:12 +0000 (10:01 +0100)
committerLuuk van Dijk <lvd@golang.org>
Tue, 17 Jan 2012 09:01:12 +0000 (10:01 +0100)
R=rsc
CC=golang-dev
https://golang.org/cl/5543063

src/cmd/gc/esc.c

index 43986c6af20c80fa8bd7c5572330839582e7c5b0..7e20457d9aea6dc3c0fce21ff6273c6084470447 100644 (file)
@@ -64,6 +64,7 @@ escapes(void)
        NodeList *l;
 
        theSink.op = ONAME;
+       theSink.orig = &theSink;
        theSink.class = PEXTERN;
        theSink.sym = lookup(".sink");
        theSink.escloopdepth = -1;