mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 07:30:43 +03:00
Rename DtoAggrCopy/ZeroInit() to DtoMemCpy/SetZero() overloads
And replace some obvious load->store combos by a memcpy.
This commit is contained in:
parent
740a21eb8f
commit
ddfaac10b3
10 changed files with 53 additions and 51 deletions
|
@ -308,7 +308,7 @@ void DtoAssign(Loc &loc, DValue *lhs, DValue *rhs, int op,
|
|||
// time as to not emit an invalid (overlapping) memcpy on trivial
|
||||
// struct self-assignments like 'A a; a = a;'.
|
||||
if (src != dst) {
|
||||
DtoAggrCopy(dst, src);
|
||||
DtoMemCpy(dst, src);
|
||||
}
|
||||
}
|
||||
} else if (t->ty == Tarray || t->ty == Tsarray) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue