Commit 13d048a2 authored by Luuk van Dijk's avatar Luuk van Dijk

gc: fix %N for OGOTO nodes.

6g -W crashed on any source with a goto. this fixes that.

R=rsc, r
CC=golang-dev
https://golang.org/cl/4675052
parent eea54435
...@@ -1124,7 +1124,7 @@ Sconv(Fmt *fp) ...@@ -1124,7 +1124,7 @@ Sconv(Fmt *fp)
return 0; 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 // This one is for the user. If the package name
// was used by multiple packages, give the full // was used by multiple packages, give the full
// import path to disambiguate. // import path to disambiguate.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment