| ... | ... | @@ -18202,12 +18202,6 @@ fn zirAddrSpaceCast(sema: *Sema, block: *Block, extended: Zir.Inst.Extended.Inst |
| 18202 | 18202 | else |
| 18203 | 18203 | dest_ptr_ty; |
| 18204 | 18204 | |
| 18205 | | if (try sema.resolveMaybeUndefVal(block, ptr_src, ptr)) |val| { |
| 18206 | | // Pointer value should compatible with both address spaces. |
| 18207 | | // TODO: Figure out why this generates an invalid bitcast. |
| 18208 | | return sema.addConstant(dest_ty, val); |
| 18209 | | } |
| 18210 | | |
| 18211 | 18205 | try sema.requireRuntimeBlock(block, src, ptr_src); |
| 18212 | 18206 | // TODO: Address space cast safety? |
| 18213 | 18207 | |