Skip to content

Commit 912c4e2

Browse files
committed
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 golang#40724. Change-Id: Ic9b02d72d18ff48c9de1209987cc39da619c2241 Reviewed-on: https://go-review.googlesource.com/c/go/+/308189 Trust: David Chase <[email protected]> Run-TryBot: David Chase <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Austin Clements <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
1 parent 1749f39 commit 912c4e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/reflect/value.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ func (v Value) call(op string, in []Value) []Value {
592592
print("kind=", steps[0].kind, ", type=", tv.String(), "\n")
593593
panic("mismatch between ABI description and types")
594594
}
595-
ret[i] = Value{tv.common(), regArgs.Ptrs[steps[0].ireg], flag(t.Kind())}
595+
ret[i] = Value{tv.common(), regArgs.Ptrs[steps[0].ireg], flag(tv.Kind())}
596596
continue
597597
}
598598

0 commit comments

Comments
 (0)