mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
tccgen.c: Use memmove for struct assignment: dest and src may be equal.
This commit is contained in:
parent
8eab556ac5
commit
b051549f2e
3
tccgen.c
3
tccgen.c
@ -2576,7 +2576,8 @@ ST_FUNC void vstore(void)
|
||||
vpush_global_sym(&func_old_type, TOK_memcpy4);
|
||||
else
|
||||
#endif
|
||||
vpush_global_sym(&func_old_type, TOK_memcpy);
|
||||
/* Use memmove, rather than memcpy, as dest and src may be same: */
|
||||
vpush_global_sym(&func_old_type, TOK_memmove);
|
||||
|
||||
vswap();
|
||||
/* source */
|
||||
|
Loading…
Reference in New Issue
Block a user