aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/reflectdata/alg.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2023-08-17 23:28:32 -0700
committerGopher Robot <gobot@golang.org>2023-08-18 22:39:00 +0000
commit4089b6a5b13282a2fd3d1ec5b1a2d67825c5e6b2 (patch)
treefff29bb072ba39bc9bf237872afdcc517a8beabd /src/cmd/compile/internal/reflectdata/alg.go
parent09b03117b056c9d84c018f55910ffccc29976e4b (diff)
downloadgo-4089b6a5b13282a2fd3d1ec5b1a2d67825c5e6b2.tar.xz
cmd/compile/internal/typecheck: remove DeclContext
The last use of this was removed in go.dev/cl/518757. Change-Id: I41ddc9601bfa7e553b83c4c5a055104b2044d5d0 Reviewed-on: https://go-review.googlesource.com/c/go/+/520610 Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Auto-Submit: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/reflectdata/alg.go')
-rw-r--r--src/cmd/compile/internal/reflectdata/alg.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/reflectdata/alg.go b/src/cmd/compile/internal/reflectdata/alg.go
index 27ecbe9380..d46b0cd360 100644
--- a/src/cmd/compile/internal/reflectdata/alg.go
+++ b/src/cmd/compile/internal/reflectdata/alg.go
@@ -141,7 +141,6 @@ func hashFunc(t *types.Type) *ir.Func {
}
base.Pos = base.AutogeneratedPos // less confusing than end of input
- typecheck.DeclContext = ir.PEXTERN
// func sym(p *T, h uintptr) uintptr
args := []*ir.Field{
@@ -367,7 +366,6 @@ func eqFunc(t *types.Type) *ir.Func {
return sym.Def.(*ir.Name).Func
}
base.Pos = base.AutogeneratedPos // less confusing than end of input
- typecheck.DeclContext = ir.PEXTERN
// func sym(p, q *T) bool
fn := typecheck.DeclFunc(sym, nil,