mirror of
https://github.com/ziglang/zig.git
synced 2025-12-16 11:13:08 +00:00
disable sema.addConstant
This commit is contained in:
parent
b425d88737
commit
ac1f17f63f
@ -18202,12 +18202,6 @@ fn zirAddrSpaceCast(sema: *Sema, block: *Block, extended: Zir.Inst.Extended.Inst
|
|||||||
else
|
else
|
||||||
dest_ptr_ty;
|
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);
|
try sema.requireRuntimeBlock(block, src, ptr_src);
|
||||||
// TODO: Address space cast safety?
|
// TODO: Address space cast safety?
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user