From c9372619f2b6cfc7edff790b20b67e2ce5d8e044 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Tue, 30 Jun 2015 21:16:51 -0700 Subject: [PATCH] [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 --- src/cmd/compile/internal/gc/ssa.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- 2.48.1