Commit c9372619 authored by Keith Randall's avatar Keith Randall

[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/11793Reviewed-by: default avatarKeith Randall <khr@golang.org>
parent 90b0a932
...@@ -1321,7 +1321,8 @@ type ssaExport struct { ...@@ -1321,7 +1321,8 @@ type ssaExport struct {
// is a global string constant containing s. // is a global string constant containing s.
func (*ssaExport) StringSym(s string) interface{} { func (*ssaExport) StringSym(s string) interface{} {
// TODO: is idealstring correct? It might not matter... // 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. // Log logs a message from the compiler.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment