aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/gc/subr.go
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo@golang.org>2020-10-16 22:30:09 +0200
committerFilippo Valsorda <filippo@golang.org>2020-10-16 22:30:09 +0200
commited9dc25d693c02aeeb8ed084b28b6d7f9489dc5a (patch)
tree607e9be8b09af4947c54461f5f682913871493fb /src/cmd/compile/internal/gc/subr.go
parentdbc5602d18397d1841cb7b2e8974d472c15dee83 (diff)
parent1984ee00048b63eacd2155cd6d74a2d13e998272 (diff)
downloadgo-ed9dc25d693c02aeeb8ed084b28b6d7f9489dc5a.tar.gz
go-ed9dc25d693c02aeeb8ed084b28b6d7f9489dc5a.zip
[dev.boringcrypto.go1.15] all: merge go1.15.3 into dev.boringcrypto.go1.15
Change-Id: Ie6adbf4564f8a025ff7fa21f31c0cd19ad8bc232
Diffstat (limited to 'src/cmd/compile/internal/gc/subr.go')
-rw-r--r--src/cmd/compile/internal/gc/subr.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/gc/subr.go b/src/cmd/compile/internal/gc/subr.go
index 9362c74288..c82eefb63d 100644
--- a/src/cmd/compile/internal/gc/subr.go
+++ b/src/cmd/compile/internal/gc/subr.go
@@ -696,14 +696,14 @@ func convertop(srcConstant bool, src, dst *types.Type, why *string) Op {
// (a) Disallow (*T) to (*U) where T is go:notinheap but U isn't.
if src.IsPtr() && dst.IsPtr() && dst.Elem().NotInHeap() && !src.Elem().NotInHeap() {
if why != nil {
- *why = fmt.Sprintf(":\n\t%v is go:notinheap, but %v is not", dst.Elem(), src.Elem())
+ *why = fmt.Sprintf(":\n\t%v is incomplete (or unallocatable), but %v is not", dst.Elem(), src.Elem())
}
return OXXX
}
// (b) Disallow string to []T where T is go:notinheap.
if src.IsString() && dst.IsSlice() && dst.Elem().NotInHeap() && (dst.Elem().Etype == types.Bytetype.Etype || dst.Elem().Etype == types.Runetype.Etype) {
if why != nil {
- *why = fmt.Sprintf(":\n\t%v is go:notinheap", dst.Elem())
+ *why = fmt.Sprintf(":\n\t%v is incomplete (or unallocatable)", dst.Elem())
}
return OXXX
}