From ad77cefeb2f5b3f1cef4383e974195ffc8610236 Mon Sep 17 00:00:00 2001 From: Cuong Manh Le Date: Wed, 3 Jul 2024 11:46:46 +0700 Subject: [PATCH] cmd/compile: correct RewriteMultiValueCall fatal message The function name was changed in CL 331470. Change-Id: I6f41866a9c5ccce594dd84185ebfc1c5af280184 Reviewed-on: https://go-review.googlesource.com/c/go/+/596395 Reviewed-by: Cherry Mui Auto-Submit: Cuong Manh Le LUCI-TryBot-Result: Go LUCI Reviewed-by: David Chase Reviewed-by: Than McIntosh --- src/cmd/compile/internal/typecheck/typecheck.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/compile/internal/typecheck/typecheck.go b/src/cmd/compile/internal/typecheck/typecheck.go index b4b9ecd8368..ec849e31540 100644 --- a/src/cmd/compile/internal/typecheck/typecheck.go +++ b/src/cmd/compile/internal/typecheck/typecheck.go @@ -663,14 +663,14 @@ func RewriteMultiValueCall(n ir.InitNode, call ir.Node) { switch n := n.(type) { default: - base.Fatalf("rewriteMultiValueCall %+v", n.Op()) + base.Fatalf("RewriteMultiValueCall %+v", n.Op()) case *ir.CallExpr: n.Args = list case *ir.ReturnStmt: n.Results = list case *ir.AssignListStmt: if n.Op() != ir.OAS2FUNC { - base.Fatalf("rewriteMultiValueCall: invalid op %v", n.Op()) + base.Fatalf("RewriteMultiValueCall: invalid op %v", n.Op()) } as.SetOp(ir.OAS2FUNC) n.SetOp(ir.OAS2)