From 912c4e29d3cdabe11db70ed168ddaa4bcc515772 Mon Sep 17 00:00:00 2001 From: David Chase Date: Wed, 7 Apr 2021 17:03:46 -0400 Subject: [PATCH] reflect: fix typo in result-in-registers case t is the type of the function that was called tv is the type of the result This fixes the failures for GOEXPERIMENT=regabi,regabiargs go test go test text/template GOEXPERIMENT=regabi,regabiargs go test go test html/template Updates #40724. Change-Id: Ic9b02d72d18ff48c9de1209987cc39da619c2241 Reviewed-on: https://go-review.googlesource.com/c/go/+/308189 Trust: David Chase Run-TryBot: David Chase TryBot-Result: Go Bot Reviewed-by: Austin Clements Reviewed-by: Michael Knyszek --- src/reflect/value.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reflect/value.go b/src/reflect/value.go index 8afb1cc141..9670d4656b 100644 --- a/src/reflect/value.go +++ b/src/reflect/value.go @@ -592,7 +592,7 @@ func (v Value) call(op string, in []Value) []Value { print("kind=", steps[0].kind, ", type=", tv.String(), "\n") panic("mismatch between ABI description and types") } - ret[i] = Value{tv.common(), regArgs.Ptrs[steps[0].ireg], flag(t.Kind())} + ret[i] = Value{tv.common(), regArgs.Ptrs[steps[0].ireg], flag(tv.Kind())} continue } -- 2.50.0