From: Cherry Zhang Date: Thu, 22 Oct 2020 01:06:44 +0000 (-0400) Subject: cmd/compile: remove go115makeslicecopy X-Git-Tag: go1.16beta1~600 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5d9b66cdc67332be3323e13b3e33713d496d6a56;p=gostls13.git cmd/compile: remove go115makeslicecopy Change-Id: I6fd65fe7c1046c3ba7d7ed0e67282f879c13e9e9 Reviewed-on: https://go-review.googlesource.com/c/go/+/264340 Trust: Cherry Zhang Reviewed-by: Keith Randall --- diff --git a/src/cmd/compile/internal/gc/order.go b/src/cmd/compile/internal/gc/order.go index f7fe3ed360..863de5b6c7 100644 --- a/src/cmd/compile/internal/gc/order.go +++ b/src/cmd/compile/internal/gc/order.go @@ -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 }