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

@ -264,7 +264,7 @@ bool DtoLowerMagicIntrinsic(IRState *p, FuncDeclaration *fndecl, CallExp *e,
LLValue *pAp = toElem((*e->arguments)[0])->getLVal(); // va_list*
// variadic extern(D) function with implicit _argptr?
if (LLValue *pArgptr = p->func()->_argptr) {
DtoStore(DtoLoad(pArgptr), pAp); // ap = _argptr
DtoMemCpy(pAp, pArgptr); // ap = _argptr
result = new DImValue(e->type, pAp);
} else {
LLValue *vaStartArg = gABI->prepareVaStart(pAp);