mirror of
https://github.com/golang/go
synced 2024-11-22 03:54:39 -07:00
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
This commit is contained in:
parent
eea5443572
commit
13d048a221
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user