Commit 722764b7 authored by Keith Randall's avatar Keith Randall

runtime: make go vet happy

CL 117950044 updates vet to fix LEA* issue.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/112440043
parent 064acace
......@@ -2276,7 +2276,7 @@ TEXT runtime·gohash(SB), NOSPLIT, $24-40
MOVQ size+16(FP), DX
MOVQ seed+24(FP), DI
MOVQ DI, ret+32(FP)
LEAQ ret+32(FP), SI // TODO: go vet complains here: "invalid LEAQ of ret+32(FP); bool is 1-byte value"
LEAQ ret+32(FP), SI
MOVQ SI, 0(SP)
MOVQ DX, 8(SP)
MOVQ CX, 16(SP)
......
......@@ -672,10 +672,10 @@ TEXT runtime·getcallerpc(SB),NOSPLIT,$0-8
MOVL -8(AX),AX // get calling pc
RET
TEXT runtime·gogetcallerpc(SB),NOSPLIT,$0-8
TEXT runtime·gogetcallerpc(SB),NOSPLIT,$0-12
MOVL p+0(FP),AX // addr of first arg
MOVL -8(AX),AX // get calling pc
MOVL AX, ret+4(FP)
MOVL AX, ret+8(FP)
RET
TEXT runtime·setcallerpc(SB),NOSPLIT,$0-16
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment