Rename DtoAggrCopy/ZeroInit() to DtoMemCpy/SetZero() overloads

And replace some obvious load->store combos by a memcpy.
This commit is contained in:
Martin 2015-11-22 14:39:51 +01:00
parent 740a21eb8f
commit ddfaac10b3
10 changed files with 53 additions and 51 deletions

View file

@ -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) {