Replace local @(no_red_zone) with global -disable-red-zone

This commit is contained in:
gingerBill
2022-02-23 11:29:36 +00:00
parent 493bc653b5
commit 196bd735d4
7 changed files with 17 additions and 18 deletions

View File

@@ -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");
}