Index: src/runtime/lookup-asm/lookup-asm-amd64-elf.S ================================================================== --- src/runtime/lookup-asm/lookup-asm-amd64-elf.S +++ src/runtime/lookup-asm/lookup-asm-amd64-elf.S @@ -56,11 +56,10 @@ testq %rax, %rax jz ret_nil movq 8(%rdi), %r8 movq 64(%r8), %r8 - movq %rdi, %rax jmp .Lmain_\lookup .type \name, %function .size \name, .-\name .endm Index: src/runtime/lookup-asm/lookup-asm-amd64-macho.S ================================================================== --- src/runtime/lookup-asm/lookup-asm-amd64-macho.S +++ src/runtime/lookup-asm/lookup-asm-amd64-macho.S @@ -54,11 +54,10 @@ testq %rax, %rax jz ret_nil movq 8(%rdi), %r8 movq 64(%r8), %r8 - movq %rdi, %rax jmp Lmain_$1 .endmacro generate_lookup _objc_msg_lookup, _objc_method_not_found generate_lookup _objc_msg_lookup_stret, _objc_method_not_found_stret