commit | 2d82465d18520820c52fea6b5e400a692ffdb92a | [log] [tgz] |
---|---|---|
author | Iskander Sharipov <iskander.sharipov@intel.com> | Wed Sep 05 18:49:52 2018 +0300 |
committer | Iskander Sharipov <iskander.sharipov@intel.com> | Mon Sep 17 11:06:01 2018 +0000 |
tree | e8af195bdb3d8880810afe788e95b048c9fd8b4c | |
parent | 930ce09ca3a1ab5f886c2327fc143b9ae075807b [diff] |
cmd/compile/internal/gc: treat cap/len as safe in mayAffectMemory OLEN and OCAP can't affect memory state as long as their arguments don't. Re-organized case bodies to avoid duplicating same branches for recursive invocations. Change-Id: I30407143429f7dd1891badb70df88969ed267535 Reviewed-on: https://go-review.googlesource.com/133555 Run-TryBot: Iskander Sharipov <iskander.sharipov@intel.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://golang.org/dl/.
After downloading a binary release, visit https://golang.org/doc/install or load doc/install.html in your web browser for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source or load doc/install-source.html in your web browser for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines: https://golang.org/doc/contribute.html
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.