]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: lower slice clears to memclrHasPointers
authorAustin Clements <austin@google.com>
Tue, 18 Oct 2016 14:01:56 +0000 (10:01 -0400)
committerAustin Clements <austin@google.com>
Fri, 28 Oct 2016 19:13:13 +0000 (19:13 +0000)
commit58e2edafb718718225056530a7a09ee3e08a96d1
treea24a2d3e4196b3b32d38e0fa48b97e934f6a2333
parentef3df18944d2d210f99de88fee01414ab1fa8f66
cmd/compile: lower slice clears to memclrHasPointers

If a slice's backing store has pointers, we need to lower clears of
that slice to memclrHasPointers instead of memclrNoHeapPointers.

Updates #17503.

Change-Id: I20750e4bf57f7b8862f3d898bfb32d964b91d07b
Reviewed-on: https://go-review.googlesource.com/31450
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/cmd/compile/internal/gc/range.go