aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/noder/reader.go
diff options
context:
space:
mode:
authorTim King <taking@google.com>2024-08-15 13:57:53 -0700
committerTim King <taking@google.com>2024-08-20 23:11:53 +0000
commit24fd1a043d1a81267d4a8175c114b59a86928ddd (patch)
tree0485fbdc3f583278289352a64b99e59606607d6f /src/cmd/compile/internal/noder/reader.go
parent7dc1ee81f9be4bf3397646afcd3170e896389342 (diff)
downloadgo-24fd1a043d1a81267d4a8175c114b59a86928ddd.tar.xz
cmd/compile: deprecate has init and derived func instance
Removes 'has init' and 'derived func instance' fields from unified IR starting with V2. This should be a no-op at the moment as the writer is hardwired to create V1. Updates #68778 Change-Id: I84a606cbc27cd6d8bd6eee2aff44c89f4aa7413c Reviewed-on: https://go-review.googlesource.com/c/go/+/606035 Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com> Reviewed-by: Robert Griesemer <gri@google.com> Reviewed-by: David Chase <drchase@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/cmd/compile/internal/noder/reader.go')
-rw-r--r--src/cmd/compile/internal/noder/reader.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/noder/reader.go b/src/cmd/compile/internal/noder/reader.go
index dcb4e3d1d9..a825d60f7e 100644
--- a/src/cmd/compile/internal/noder/reader.go
+++ b/src/cmd/compile/internal/noder/reader.go
@@ -640,7 +640,9 @@ func (r *reader) obj() ir.Node {
// and returns the encoded reference to it, without instantiating it.
func (r *reader) objInfo() objInfo {
r.Sync(pkgbits.SyncObject)
- assert(!r.Bool()) // TODO(mdempsky): Remove; was derived func inst.
+ if r.Version().Has(pkgbits.DerivedFuncInstance) {
+ assert(!r.Bool())
+ }
idx := r.Reloc(pkgbits.RelocObj)
explicits := make([]typeInfo, r.Len())