]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: get runtime stuff working
authorKeith Randall <khr@golang.org>
Tue, 20 Jul 2021 22:02:01 +0000 (15:02 -0700)
committerKeith Randall <khr@golang.org>
Wed, 21 Jul 2021 21:06:02 +0000 (21:06 +0000)
commite6a2cf233f736e6852b64b53d66dbda21c2e062d
tree2556f3b70d1cca3ff57ff3777a684d87cbbc81c6
parent4a97fe8c2298ae879904d3cf304ca29500abf169
[dev.typeparams] cmd/compile: get runtime stuff working

Remaining stuff from Dan's CL 335412 to get tests passing.

 - Removed PTRLIT case in node() that was added with the gcshape change.
   I don't think it is needed anymore.

 - Modified (*itab).init() to add an irrelevant pointer (the itab
   itself) for the '==' entry of interfaces with 'comparable'. That
   entry is not used, so we just want to avoid the error that the given
   type doesn't actually have an '==' method.

Change-Id: I9b2d4c8342c0b2048d76e003d95023f4ccd559f5
Reviewed-on: https://go-review.googlesource.com/c/go/+/336149
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
Trust: Dan Scales <danscales@google.com>
Trust: Keith Randall <khr@golang.org>
src/cmd/compile/internal/noder/stencil.go
src/runtime/iface.go