We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8edf4cb commit 811ebb6Copy full SHA for 811ebb6
src/cmd/compile/internal/gc/ssa.go
@@ -699,7 +699,8 @@ func (s *state) stmt(n *Node) {
699
// If the slice can be SSA'd, it'll be on the stack,
700
// so there will be no write barriers,
701
// so there's no need to attempt to prevent them.
702
- if samesafeexpr(n.Left, rhs.List.First()) && !s.canSSA(n.Left) {
+ const doInPlaceAppend = false // issue 15246
703
+ if doInPlaceAppend && samesafeexpr(n.Left, rhs.List.First()) && !s.canSSA(n.Left) {
704
s.append(rhs, true)
705
return
706
}
0 commit comments