mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-17 11:22:22 -07:00
Fix procedure pointer cast
This commit is contained in:
@@ -736,6 +736,9 @@ lbValue lb_emit_call_internal(lbProcedure *p, lbValue value, lbValue return_ptr,
|
||||
}
|
||||
for_array(i, processed_args) {
|
||||
lbValue arg = processed_args[i];
|
||||
if (is_type_proc(arg.type)) {
|
||||
arg.value = LLVMBuildPointerCast(p->builder, arg.value, lb_type(p->module, arg.type), "");
|
||||
}
|
||||
args[arg_index++] = arg.value;
|
||||
}
|
||||
if (context_ptr.addr.value != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user