Skip to content

Commit d410642

Browse files
runtime: use correct register in darwin/386 pipe_trampoline
Updates #31264 Change-Id: I745744dd3fdaa432d70e8dc9336547017bac89ee Reviewed-on: https://go-review.googlesource.com/c/go/+/184377 Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Elias Naur <[email protected]>
1 parent bc593ea commit d410642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/sys_darwin_386.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ TEXT runtime·pipe_trampoline(SB),NOSPLIT,$0
8888
PUSHL BP
8989
MOVL SP, BP
9090
SUBL $8, SP
91-
MOVL 16(SP), CX // arg 1 pipefd
91+
MOVL 16(SP), AX // arg 1 pipefd
9292
MOVL AX, 0(SP)
9393
CALL libc_pipe(SB)
9494
TESTL AX, AX

0 commit comments

Comments
 (0)