mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01:00
llvm: lower ptr to int constants with correct address spaces
Closes #19915
This commit is contained in:
parent
ae44e199a8
commit
167854c19c
1 changed files with 1 additions and 1 deletions
|
|
@ -4376,7 +4376,7 @@ pub const Object = struct {
|
|||
.int => try o.builder.castConst(
|
||||
.inttoptr,
|
||||
try o.builder.intConst(try o.lowerType(Type.usize), offset),
|
||||
.ptr,
|
||||
try o.lowerType(Type.fromInterned(ptr.ty)),
|
||||
),
|
||||
.eu_payload => |eu_ptr| try o.lowerPtr(
|
||||
eu_ptr,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue