zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit ac1f17f63fd833e5b35dc5255c2ca6a5a041c36c (tree)
parent b425d887375132a915a5cd2baf7958f273732ee1
Author: Guillaume Wenzek <gwenzek@users.noreply.github.com>
Date:   Thu,  6 Oct 2022 21:48:35 +0200

disable sema.addConstant

Diffstat:
Msrc/Sema.zig | 6------
1 file changed, 0 insertions(+), 6 deletions(-)

diff --git a/src/Sema.zig b/src/Sema.zig @@ -18202,12 +18202,6 @@ fn zirAddrSpaceCast(sema: *Sema, block: *Block, extended: Zir.Inst.Extended.Inst else dest_ptr_ty; - if (try sema.resolveMaybeUndefVal(block, ptr_src, ptr)) |val| { - // Pointer value should compatible with both address spaces. - // TODO: Figure out why this generates an invalid bitcast. - return sema.addConstant(dest_ty, val); - } - try sema.requireRuntimeBlock(block, src, ptr_src); // TODO: Address space cast safety?