Skip to content
Snippets Groups Projects
Commit b89a840d authored by Cuong Manh Le's avatar Cuong Manh Le Committed by Gopher Robot
Browse files

cmd/compile: add clear(x) builtin

To clear map, and zero content of slice.

Updates #56351

Change-Id: I5f81dfbc465500f5acadaf2c6beb9b5f0d2c4045
Reviewed-on: https://go-review.googlesource.com/c/go/+/453395


Reviewed-by: default avatarCherry Mui <cherryyz@google.com>
Reviewed-by: default avatarKeith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: default avatarKeith Randall <khr@google.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
parent bb4ea80b
No related branches found
No related tags found
Loading
Showing
with 256 additions and 142 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment