aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/gc
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-04-14 09:48:11 -0400
committerRuss Cox <rsc@golang.org>2014-04-14 09:48:11 -0400
commitc48db9a47388bfbcec97d33b03ee81ffe7eb50af (patch)
treef15ec755de5fc5fd5bea37eab62ede574e8874ea /src/cmd/gc
parent72185093f669eab9b07523bded3d186b4bb4321d (diff)
downloadgo-c48db9a47388bfbcec97d33b03ee81ffe7eb50af.tar.xz
undo CL 66510044 / 6c0339d94123
Broke other things - see issue 7522. Fixes #7522. Reopens issue 7363. ««« original CL description cmd/gc: make embedded, unexported fields read-only. Fixes #7363. LGTM=gri R=gri, rsc, bradfitz CC=golang-codereviews https://golang.org/cl/66510044 »»» LGTM=r, mpvl R=golang-codereviews, r CC=golang-codereviews, iant, mpvl https://golang.org/cl/85580046
Diffstat (limited to 'src/cmd/gc')
-rw-r--r--src/cmd/gc/reflect.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cmd/gc/reflect.c b/src/cmd/gc/reflect.c
index 75d7d8c1c8..af9177f900 100644
--- a/src/cmd/gc/reflect.c
+++ b/src/cmd/gc/reflect.c
@@ -1138,8 +1138,7 @@ ok:
ot = dgopkgpath(s, ot, t1->sym->pkg);
} else {
ot = dgostringptr(s, ot, nil);
- if(t1->type->sym != S &&
- (t1->type->sym->pkg == builtinpkg || !exportname(t1->type->sym->name)))
+ if(t1->type->sym != S && t1->type->sym->pkg == builtinpkg)
ot = dgopkgpath(s, ot, localpkg);
else
ot = dgostringptr(s, ot, nil);