mirror of https://github.com/golang/go.git
cmd/compile: remove go115makeslicecopy
Change-Id: I6fd65fe7c1046c3ba7d7ed0e67282f879c13e9e9 Reviewed-on: https://go-review.googlesource.com/c/go/+/264340 Trust: Cherry Zhang <cherryyz@google.com> Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
b4a06b2089
commit
5d9b66cdc6
|
|
@ -323,11 +323,6 @@ func (o *Order) stmtList(l Nodes) {
|
|||
// and rewrites it to:
|
||||
// m = OMAKESLICECOPY([]T, x, s); nil
|
||||
func orderMakeSliceCopy(s []*Node) {
|
||||
const go115makeslicecopy = true
|
||||
if !go115makeslicecopy {
|
||||
return
|
||||
}
|
||||
|
||||
if Debug.N != 0 || instrumenting {
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue