mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Add #no_capture args: ..T to reuse the backing array stack memory
This commit is contained in:
@@ -296,6 +296,11 @@ enum lbProcedureFlag : u32 {
|
||||
lbProcedureFlag_DebugAllocaCopy = 1<<1,
|
||||
};
|
||||
|
||||
struct lbNoCaptureData {
|
||||
Type *slice_type;
|
||||
lbAddr base_array;
|
||||
};
|
||||
|
||||
struct lbProcedure {
|
||||
u32 flags;
|
||||
u16 state_flags;
|
||||
@@ -336,6 +341,8 @@ struct lbProcedure {
|
||||
bool in_multi_assignment;
|
||||
Array<LLVMValueRef> raw_input_parameters;
|
||||
|
||||
Array<lbNoCaptureData> no_captures;
|
||||
|
||||
LLVMValueRef temp_callee_return_struct_memory;
|
||||
|
||||
Ast *curr_stmt;
|
||||
|
||||
Reference in New Issue
Block a user