| author | |
| committer | |
| log | 2463f4df7780e268546cfd5bb0550f20114a0c1b |
| tree | 758aa14bb380972c41a0baee9f919bef88456c41 |
| parent | 8385b2c3797aa9777621dff55fe004924968d118 |
2 files changed, 3 insertions(+), 1 deletions(-)
lib/std/builtin.zig+2| ... | ... | @@ -190,10 +190,12 @@ pub const CallingConvention = enum(u8) { |
| 190 | 190 | /// This data structure is used by the Zig language code generation and |
| 191 | 191 | /// therefore must be kept in sync with the compiler implementation. |
| 192 | 192 | pub const AddressSpace = enum(u5) { |
| 193 | // CPU address spaces. | |
| 193 | 194 | generic, |
| 194 | 195 | gs, |
| 195 | 196 | fs, |
| 196 | 197 | ss, |
| 198 | ||
| 197 | 199 | // GPU address spaces. |
| 198 | 200 | global, |
| 199 | 201 | constant, |
src/Sema.zig+1-1| ... | ... | @@ -35631,7 +35631,7 @@ pub fn analyzeAddressSpace( |
| 35631 | 35631 | ctx: AddressSpaceContext, |
| 35632 | 35632 | ) !std.builtin.AddressSpace { |
| 35633 | 35633 | const mod = sema.mod; |
| 35634 | const addrspace_tv = try sema.resolveInstConst(block, src, zir_ref, "addresspace must be comptime-known"); | |
| 35634 | const addrspace_tv = try sema.resolveInstConst(block, src, zir_ref, "address space must be comptime-known"); | |
| 35635 | 35635 | const address_space = mod.toEnum(std.builtin.AddressSpace, addrspace_tv.val); |
| 35636 | 35636 | const target = sema.mod.getTarget(); |
| 35637 | 35637 | const arch = target.cpu.arch; |