Make set_procedure_abi_types use the permanent_allocator

This commit is contained in:
gingerBill
2020-11-15 18:11:49 +00:00
parent 3c1c10a178
commit 30d922b059
5 changed files with 30 additions and 28 deletions

View File

@@ -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;