Package.Module: fix typo in default red-zone setting

oops, this was supposed to return true, not false.
This commit is contained in:
Andrew Kelley 2023-12-24 19:20:41 -07:00
parent 41ab64c3eb
commit edccd68adf

View File

@ -187,7 +187,7 @@ pub fn create(arena: Allocator, options: CreateOptions) !*Package.Module {
if (!target_util.hasRedZone(target)) {
if (options.inherited.red_zone == true)
return error.TargetHasNoRedZone;
break :b true;
break :b false;
}
if (options.inherited.red_zone) |x| break :b x;
if (options.parent) |p| break :b p.red_zone;