mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 05:39:19 +02:00
* fpc_pchar_length: fixed exit without restoring EDI register if argument is nil, bug #21135.
git-svn-id: trunk@20156 -
This commit is contained in:
parent
c729bd7a3f
commit
b9b960ebcf
@ -936,12 +936,12 @@ asm
|
|||||||
pop %edx
|
pop %edx
|
||||||
pop %eax
|
pop %eax
|
||||||
{$endif FPC_PROFILE}
|
{$endif FPC_PROFILE}
|
||||||
|
test %eax,%eax
|
||||||
|
jz .LStrLenDone
|
||||||
movl %edi,saveedi
|
movl %edi,saveedi
|
||||||
movl %eax,%edi
|
movl %eax,%edi
|
||||||
movl $0xffffffff,%ecx
|
movl $0xffffffff,%ecx
|
||||||
xorl %eax,%eax
|
xorl %eax,%eax
|
||||||
test %edi,%edi
|
|
||||||
jz .LStrLenDone
|
|
||||||
cld
|
cld
|
||||||
repne
|
repne
|
||||||
scasb
|
scasb
|
||||||
|
Loading…
Reference in New Issue
Block a user