mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-11 07:17:48 -04:00
fix optimization mode, cold, and disabled not being applied to poly procs
This commit is contained in:
1 parent
d43a2daa17
commit
40625b24e2
1 file changed
+10
@@ -587,6 +587,16 @@ gb_internal bool find_or_generate_polymorphic_procedure(CheckerContext *old_c, E
|
||||
entity->file = base_entity->file;
|
||||
entity->pkg = base_entity->pkg;
|
||||
entity->flags = 0;
|
||||
|
||||
entity->Procedure.optimization_mode = base_entity->Procedure.optimization_mode;
|
||||
|
||||
if (base_entity->flags & EntityFlag_Cold) {
|
||||
entity->flags |= EntityFlag_Cold;
|
||||
}
|
||||
if (base_entity->flags & EntityFlag_Disabled) {
|
||||
entity->flags |= EntityFlag_Disabled;
|
||||
}
|
||||
|
||||
d->entity = entity;
|
||||
|
||||
AstFile *file = nullptr;
|
||||
|
||||
Reference in new issue
Block a user