mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-05 02:04:06 +00:00
Mock out #no_capture for future use
This commit is contained in:
@@ -15,6 +15,7 @@ struct lbArgType {
|
||||
LLVMAttributeRef align_attribute; // Optional
|
||||
i64 byval_alignment;
|
||||
bool is_byval;
|
||||
bool no_capture;
|
||||
};
|
||||
|
||||
|
||||
@@ -159,6 +160,11 @@ gb_internal void lb_add_function_type_attributes(LLVMValueRef fn, lbFunctionType
|
||||
LLVMAddAttributeAtIndex(fn, arg_index+1, arg->align_attribute);
|
||||
}
|
||||
|
||||
if (arg->no_capture) {
|
||||
LLVMAddAttributeAtIndex(fn, arg_index+1, nocapture_attr);
|
||||
}
|
||||
|
||||
|
||||
if (ft->multiple_return_original_type) {
|
||||
if (ft->original_arg_count <= i) {
|
||||
LLVMAddAttributeAtIndex(fn, arg_index+1, noalias_attr);
|
||||
|
||||
Reference in New Issue
Block a user