diff options
author | Luuk van Dijk <lvd@golang.org> | 2011-07-06 00:02:03 +0200 |
---|---|---|
committer | Luuk van Dijk <lvd@golang.org> | 2011-07-06 00:02:03 +0200 |
commit | c166f696fda8918f21193d31ec64cdd80fe00378 (patch) | |
tree | aa413ce18b491f6e0185422edb3250a3bc0054f3 | |
parent | b985ed88922f5c63a04c562ff60edad4b6d4dd42 (diff) | |
download | go-c166f696fda8918f21193d31ec64cdd80fe00378.tar.gz |
gc: fix %N for OGOTO nodes.
6g -W crashed on any source with a goto. this fixes that.
R=rsc, r
CC=golang-dev
http://codereview.appspot.com/4675052
-rw-r--r-- | src/cmd/gc/subr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/gc/subr.c b/src/cmd/gc/subr.c index 7c472147a..40b0c4fd1 100644 --- a/src/cmd/gc/subr.c +++ b/src/cmd/gc/subr.c @@ -1124,7 +1124,7 @@ Sconv(Fmt *fp) return 0; } - if(s->pkg != localpkg || longsymnames || (fp->flags & FmtLong)) { + if(s->pkg && s->pkg != localpkg || longsymnames || (fp->flags & FmtLong)) { // This one is for the user. If the package name // was used by multiple packages, give the full // import path to disambiguate. |