| ... | @@ -14209,8 +14209,10 @@ fn zirPtrType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air | ... | @@ -14209,8 +14209,10 @@ fn zirPtrType(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air |
| 14209 | if (inst_data.size != .One) { | 14209 | if (inst_data.size != .One) { |
| 14210 | return sema.fail(block, elem_ty_src, "function pointers must be single pointers", .{}); | 14210 | return sema.fail(block, elem_ty_src, "function pointers must be single pointers", .{}); |
| 14211 | } | 14211 | } |
| 14212 | const fn_align = elem_ty.abiAlignment(target); | 14212 | const fn_align = elem_ty.fnInfo().alignment; |
| 14213 | if (inst_data.flags.has_align and abi_align != 0 and abi_align != fn_align) { | 14213 | if (inst_data.flags.has_align and abi_align != 0 and fn_align != 0 and |
| | 14214 | abi_align != fn_align) |
| | 14215 | { |
| 14214 | return sema.fail(block, align_src, "function pointer alignment disagrees with function alignment", .{}); | 14216 | return sema.fail(block, align_src, "function pointer alignment disagrees with function alignment", .{}); |
| 14215 | } | 14217 | } |
| 14216 | } else if (inst_data.size == .Many and elem_ty.zigTypeTag() == .Opaque) { | 14218 | } else if (inst_data.size == .Many and elem_ty.zigTypeTag() == .Opaque) { |