| ... | ... | @@ -5381,7 +5381,7 @@ fn zirPtrToInt(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai |
| 5381 | 5381 | const inst_data = sema.code.instructions.items(.data)[inst].un_node; |
| 5382 | 5382 | const ptr = sema.resolveInst(inst_data.operand); |
| 5383 | 5383 | const ptr_ty = sema.typeOf(ptr); |
| 5384 | | if (ptr_ty.zigTypeTag() != .Pointer) { |
| 5384 | if (!ptr_ty.isPtrAtRuntime()) { |
| 5385 | 5385 | const ptr_src: LazySrcLoc = .{ .node_offset_builtin_call_arg0 = inst_data.src_node }; |
| 5386 | 5386 | return sema.fail(block, ptr_src, "expected pointer, found '{}'", .{ptr_ty}); |
| 5387 | 5387 | } |