mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Merge pull request #5183 from Feoramund/fix-5083
Do not call disabled deferred procedures
This commit is contained in:
@@ -6325,6 +6325,12 @@ gb_internal void check_deferred_procedures(Checker *c) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dst->flags & EntityFlag_Disabled) {
|
||||||
|
// Prevent procedures that have been disabled from acting as deferrals.
|
||||||
|
src->Procedure.deferred_procedure = {};
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
GB_ASSERT(is_type_proc(src->type));
|
GB_ASSERT(is_type_proc(src->type));
|
||||||
GB_ASSERT(is_type_proc(dst->type));
|
GB_ASSERT(is_type_proc(dst->type));
|
||||||
Type *src_params = base_type(src->type)->Proc.params;
|
Type *src_params = base_type(src->type)->Proc.params;
|
||||||
|
|||||||
Reference in New Issue
Block a user