From 008dabcd19b5c3f00083c6d4e6c306682bb1bcd0 Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Wed, 4 Oct 2023 15:22:49 -0700 Subject: cmd/compile/internal/ir: tweak a couple names CallExpr.X -> CallExpr.Fun This consistent with go/ast and cmd/compile/internal/syntax. OPRINTN -> OPRINTLN This op represents the "println" builtin; might as well spell it the same way. Change-Id: Iead1b007776658c717879cf0997b3c48028428f4 Reviewed-on: https://go-review.googlesource.com/c/go/+/532795 Reviewed-by: Cuong Manh Le Reviewed-by: Keith Randall LUCI-TryBot-Result: Go LUCI Reviewed-by: Keith Randall Auto-Submit: Matthew Dempsky --- src/cmd/compile/internal/reflectdata/reflect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/compile/internal/reflectdata') diff --git a/src/cmd/compile/internal/reflectdata/reflect.go b/src/cmd/compile/internal/reflectdata/reflect.go index a0eb93861b..b92be26e0b 100644 --- a/src/cmd/compile/internal/reflectdata/reflect.go +++ b/src/cmd/compile/internal/reflectdata/reflect.go @@ -1826,7 +1826,7 @@ func MarkUsedIfaceMethod(n *ir.CallExpr) { if ir.CurFunc.LSym == nil { return } - dot := n.X.(*ir.SelectorExpr) + dot := n.Fun.(*ir.SelectorExpr) ityp := dot.X.Type() if ityp.HasShape() { // Here we're calling a method on a generic interface. Something like: -- cgit v1.3-5-g45d5