]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.ssa] cmd/compile/internal/gc: fix stringsym call
authorKeith Randall <khr@golang.org>
Wed, 1 Jul 2015 04:16:51 +0000 (21:16 -0700)
committerKeith Randall <khr@golang.org>
Wed, 1 Jul 2015 04:18:52 +0000 (04:18 +0000)
Forgot to add this in the tip merge.

Change-Id: I0e5a2681133f4ae7a7c360ae2c2d71d46420c693
Reviewed-on: https://go-review.googlesource.com/11793
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/ssa.go

index f9c8c9b62b66131099de02a926cb36c3d335cd4b..d8b7cdf660d01d399e8246bf8cc2049c6f672075 100644 (file)
@@ -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.