diff options
| author | Josh Bleecher Snyder <josharian@gmail.com> | 2015-06-16 16:16:23 -0700 |
|---|---|---|
| committer | Josh Bleecher Snyder <josharian@gmail.com> | 2015-06-16 23:38:59 +0000 |
| commit | a5c3b6642bb01a96b59db1e55a3479549fbcca08 (patch) | |
| tree | 3baa2360d522dbd34ef6f85e964ec39e1529f879 /src/cmd/compile | |
| parent | 50ceef26e6517a5785433cd73b9eda30159d03bb (diff) | |
| download | go-a5c3b6642bb01a96b59db1e55a3479549fbcca08.tar.xz | |
[dev.ssa] cmd/compile/ssa: fix string compilation
Compilation of f_ssa was broken by CL 10929.
This CL does not include tests because
I have a work in progress CL that will catch
this and much more.
package p
func f_ssa() string {
return "ABC"
}
Change-Id: I0ce0e905e4d30ec206cce808da406b9b7f0f38e9
Reviewed-on: https://go-review.googlesource.com/11136
Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/cmd/compile')
| -rw-r--r-- | src/cmd/compile/internal/gc/ssa.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/gc/ssa.go b/src/cmd/compile/internal/gc/ssa.go index 3e898bb3a7..2f116464d4 100644 --- a/src/cmd/compile/internal/gc/ssa.go +++ b/src/cmd/compile/internal/gc/ssa.go @@ -478,7 +478,7 @@ func (s *state) assign(op uint8, left *Node, right *Node) { t := left.Type switch { case t.IsString(): - val = s.entryNewValue0(ssa.OpConst, left.Type) + val = s.entryNewValue0A(ssa.OpConst, left.Type, "") case t.IsInteger(): val = s.entryNewValue0(ssa.OpConst, left.Type) case t.IsBoolean(): |
