mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-03 04:30:08 +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);
|
vpush_global_sym(&func_old_type, TOK_memcpy4);
|
||||||
else
|
else
|
||||||
#endif
|
#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();
|
vswap();
|
||||||
/* source */
|
/* source */
|
||||||
|
Loading…
Reference in New Issue
Block a user