mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-03 03:32:37 +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;
|
||||
}
|
||||
|
||||
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(dst->type));
|
||||
Type *src_params = base_type(src->type)->Proc.params;
|
||||
|
||||
Reference in New Issue
Block a user