mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 09:24:33 +00:00
Make set_procedure_abi_types use the permanent_allocator
This commit is contained in:
@@ -89,7 +89,7 @@ Type * check_init_variable (CheckerContext *c, Entity *e, Operand *
|
||||
Type *type_to_abi_compat_param_type(gbAllocator a, Type *original_type, ProcCallingConvention cc);
|
||||
Type *type_to_abi_compat_result_type(gbAllocator a, Type *original_type, ProcCallingConvention cc);
|
||||
bool abi_compat_return_by_pointer(gbAllocator a, ProcCallingConvention cc, Type *abi_return_type);
|
||||
void set_procedure_abi_types(gbAllocator a, Type *type);
|
||||
void set_procedure_abi_types(Type *type);
|
||||
void check_assignment_error_suggestion(CheckerContext *c, Operand *o, Type *type);
|
||||
|
||||
|
||||
@@ -1012,7 +1012,7 @@ bool is_polymorphic_type_assignable(CheckerContext *c, Type *poly, Type *source,
|
||||
}
|
||||
|
||||
if (modify_type) {
|
||||
set_procedure_abi_types(c->allocator, source);
|
||||
set_procedure_abi_types(source);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user