commit | 8c30971da654a37a5f5f211e6dccf8d83e7ee463 | [log] [tgz] |
---|---|---|
author | Michael Anthony Knyszek <mknyszek@google.com> | Fri Mar 20 19:08:13 2020 +0000 |
committer | Michael Knyszek <mknyszek@google.com> | Mon Mar 23 16:01:20 2020 +0000 |
tree | 0e1ab9d0e585314d5b9d6cb17a7ba35a88a6ec47 | |
parent | 830ee4792e52cc8c7c0a4d54259f55fa3629271a [diff] |
cmd/compile: panic if trying to alias an intrinsic with no definitions Currently if we try to alias an intrinsic which hasn't been defined for any architecture (such as by accidentally creating the alias before the intrinsic is created with addF), then we'll just silently not apply any intrinsics to those aliases. Catch this particular case by panicking in alias if we try to apply the alias and it did nothing. Change-Id: I98e75fc3f7206b08fc9267cedb8db3e109ec4f5d Reviewed-on: https://go-review.googlesource.com/c/go/+/224637 Run-TryBot: Michael Knyszek <mknyszek@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@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.