| ... | @@ -26572,9 +26572,7 @@ fn zirFuncFancy(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!A | ... | @@ -26572,9 +26572,7 @@ fn zirFuncFancy(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!A |
| 26572 | if (val.isGenericPoison()) { | 26572 | if (val.isGenericPoison()) { |
| 26573 | break :blk null; | 26573 | break :blk null; |
| 26574 | } | 26574 | } |
| 26575 | const alignment = try sema.validateAlignAllowZero(block, align_src, try val.toUnsignedIntSema(pt)); | 26575 | break :blk try sema.validateAlignAllowZero(block, align_src, try val.toUnsignedIntSema(pt)); |
| 26576 | const default = target_util.defaultFunctionAlignment(target); | | |
| 26577 | break :blk if (alignment == default) .none else alignment; | | |
| 26578 | } else if (extra.data.bits.has_align_ref) blk: { | 26576 | } else if (extra.data.bits.has_align_ref) blk: { |
| 26579 | const align_ref: Zir.Inst.Ref = @enumFromInt(sema.code.extra[extra_index]); | 26577 | const align_ref: Zir.Inst.Ref = @enumFromInt(sema.code.extra[extra_index]); |
| 26580 | extra_index += 1; | 26578 | extra_index += 1; |
| ... | @@ -26592,9 +26590,7 @@ fn zirFuncFancy(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!A | ... | @@ -26592,9 +26590,7 @@ fn zirFuncFancy(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!A |
| 26592 | error.GenericPoison => break :blk null, | 26590 | error.GenericPoison => break :blk null, |
| 26593 | else => |e| return e, | 26591 | else => |e| return e, |
| 26594 | }; | 26592 | }; |
| 26595 | const alignment = try sema.validateAlignAllowZero(block, align_src, try align_val.toUnsignedIntSema(pt)); | 26593 | break :blk try sema.validateAlignAllowZero(block, align_src, try align_val.toUnsignedIntSema(pt)); |
| 26596 | const default = target_util.defaultFunctionAlignment(target); | | |
| 26597 | break :blk if (alignment == default) .none else alignment; | | |
| 26598 | } else .none; | 26594 | } else .none; |
| 26599 | | 26595 | |
| 26600 | const @"addrspace": ?std.builtin.AddressSpace = if (extra.data.bits.has_addrspace_body) blk: { | 26596 | const @"addrspace": ?std.builtin.AddressSpace = if (extra.data.bits.has_addrspace_body) blk: { |