mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-20 09:02:32 +00:00
Replace local @(no_red_zone) with global -disable-red-zone
This commit is contained in:
@@ -135,7 +135,7 @@ lbProcedure *lb_create_procedure(lbModule *m, Entity *entity, bool ignore_body)
|
||||
lb_add_attribute_to_proc(m, p->value, "naked");
|
||||
}
|
||||
|
||||
if (entity->Procedure.no_red_zone) {
|
||||
if (!entity->Procedure.is_foreign && build_context.disable_red_zone) {
|
||||
lb_add_attribute_to_proc(m, p->value, "noredzone");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user