]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: remove go115makeslicecopy
authorCherry Zhang <cherryyz@google.com>
Thu, 22 Oct 2020 01:06:44 +0000 (21:06 -0400)
committerCherry Zhang <cherryyz@google.com>
Thu, 22 Oct 2020 15:29:39 +0000 (15:29 +0000)
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>
src/cmd/compile/internal/gc/order.go

index f7fe3ed36062c73b0df921e4643501338d9d5408..863de5b6c71b49ddc32e65e9b4bb29c90e029922 100644 (file)
@@ -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
        }