mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 07:30:43 +03:00
Don't waste an alloca for the nested context argument
And so get rid of all loads too; just use the untouched pointer argument directly.
This commit is contained in:
parent
aa0b1b4e3a
commit
c6132508b1
3 changed files with 8 additions and 17 deletions
|
@ -1098,11 +1098,6 @@ void DtoDefineFunction(FuncDeclaration *fd, bool linkageAvailableExternally) {
|
|||
gIR->DBuilder.EmitLocalVariable(thismem, fd->vthis, nullptr, true);
|
||||
}
|
||||
|
||||
// give the 'nestArg' parameter (an lvalue) storage
|
||||
if (irFty.arg_nest) {
|
||||
irFunc->nestArg = DtoAllocaDump(irFunc->nestArg, 0, "nestedFrame");
|
||||
}
|
||||
|
||||
// define all explicit parameters
|
||||
if (fd->parameters)
|
||||
defineParameters(irFty, *fd->parameters);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue