mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 02:45:25 +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
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue