setClosureVarOffset

Go through the variables in function fd that are to be allocated in a closure, and set the .offset fields for those variables to their positions relative to the start of the closure instance. Also turns off nrvo for closure variables.

extern (C++)
uint
setClosureVarOffset

Parameters

fd FuncDeclaration

function

Return Value

Type: uint

overall alignment of the closure

Meta