From: Keith Randall Date: Wed, 1 Jul 2015 04:16:51 +0000 (-0700) Subject: [dev.ssa] cmd/compile/internal/gc: fix stringsym call X-Git-Tag: go1.7beta1~1623^2^2~416 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c9372619f2b6cfc7edff790b20b67e2ce5d8e044;p=gostls13.git [dev.ssa] cmd/compile/internal/gc: fix stringsym call Forgot to add this in the tip merge. Change-Id: I0e5a2681133f4ae7a7c360ae2c2d71d46420c693 Reviewed-on: https://go-review.googlesource.com/11793 Reviewed-by: Keith Randall --- diff --git a/src/cmd/compile/internal/gc/ssa.go b/src/cmd/compile/internal/gc/ssa.go index f9c8c9b62b..d8b7cdf660 100644 --- a/src/cmd/compile/internal/gc/ssa.go +++ b/src/cmd/compile/internal/gc/ssa.go @@ -1321,7 +1321,8 @@ type ssaExport struct { // is a global string constant containing s. func (*ssaExport) StringSym(s string) interface{} { // TODO: is idealstring correct? It might not matter... - return &ssa.ExternSymbol{Typ: idealstring, Sym: stringsym(s)} + hdr, _ := stringsym(s) + return &ssa.ExternSymbol{Typ: idealstring, Sym: hdr} } // Log logs a message from the compiler.