Skip to content

Commit 58c9bd9

Browse files
randall77ianlancetaylor
authored andcommitted
[release-branch.go1.11] reflect: fix s390x reflect method calls
R0 isn't the zero register any more. Oops. Update #27867 Change-Id: I46a975ed37d5e570afe2e228d3edf74949e08ad7 Reviewed-on: https://go-review.googlesource.com/138580 Reviewed-by: Michael Munday <[email protected]> Reviewed-on: https://go-review.googlesource.com/138583 Run-TryBot: Keith Randall <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Run-TryBot: Michael Munday <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 3afa9df commit 58c9bd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/reflect/asm_s390x.s

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ TEXT ·makeFuncStub(SB),(NOSPLIT|WRAPPER),$32
1414
MOVD R12, 8(R15)
1515
MOVD $argframe+0(FP), R3
1616
MOVD R3, 16(R15)
17-
MOVB R0, 32(R15)
17+
MOVB $0, 32(R15)
1818
ADD $32, R15, R3
1919
MOVD R3, 24(R15)
2020
BL ·callReflect(SB)
@@ -29,7 +29,7 @@ TEXT ·methodValueCall(SB),(NOSPLIT|WRAPPER),$32
2929
MOVD R12, 8(R15)
3030
MOVD $argframe+0(FP), R3
3131
MOVD R3, 16(R15)
32-
MOVB R0, 32(R15)
32+
MOVB $0, 32(R15)
3333
ADD $32, R15, R3
3434
MOVD R3, 24(R15)
3535
BL ·callMethod(SB)

0 commit comments

Comments
 (0)