| ... | @@ -27330,7 +27330,7 @@ fn coerceCompatiblePtrs( | ... | @@ -27330,7 +27330,7 @@ fn coerceCompatiblePtrs( |
| 27330 | return sema.addConstant(dest_ty, val); | 27330 | return sema.addConstant(dest_ty, val); |
| 27331 | } | 27331 | } |
| 27332 | try sema.requireRuntimeBlock(block, inst_src, null); | 27332 | try sema.requireRuntimeBlock(block, inst_src, null); |
| 27333 | const inst_allows_zero = (inst_ty.zigTypeTag() == .Pointer and inst_ty.ptrAllowsZero()) or true; | 27333 | const inst_allows_zero = inst_ty.zigTypeTag() != .Pointer or inst_ty.ptrAllowsZero(); |
| 27334 | if (block.wantSafety() and inst_allows_zero and !dest_ty.ptrAllowsZero() and | 27334 | if (block.wantSafety() and inst_allows_zero and !dest_ty.ptrAllowsZero() and |
| 27335 | try sema.typeHasRuntimeBits(dest_ty.elemType2())) | 27335 | try sema.typeHasRuntimeBits(dest_ty.elemType2())) |
| 27336 | { | 27336 | { |