diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-03-26 15:50:31 +0100 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-10-18 11:13:28 +0200 |
| commit | f3da54f53c1db1484b00657de18e3677358549cd (patch) | |
| tree | e356155b2f652c7a434ada3e3600529ef1a41e4b /src/Sema.zig | |
| parent | 631915ad961c83b8a2e4e36f11a278dae054372e (diff) | |
| download | zig-f3da54f53c1db1484b00657de18e3677358549cd.tar.gz zig-f3da54f53c1db1484b00657de18e3677358549cd.zip | |
std.Target: move Cpu.supportsAddressSpace() up to here
This allows us to rule out support for certain address spaces based on the OS.
This commit is just a refactor, however, and doesn't actually make use of that
opportunity yet.
Diffstat (limited to 'src/Sema.zig')
| -rw-r--r-- | src/Sema.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index 725c9d00e5..209d012b24 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -36508,7 +36508,7 @@ pub fn analyzeAsAddressSpace( const address_space = try sema.interpretBuiltinType(block, src, addrspace_val, std.builtin.AddressSpace); const target = pt.zcu.getTarget(); - if (!target.cpu.supportsAddressSpace(address_space, ctx)) { + if (!target.supportsAddressSpace(address_space, ctx)) { // TODO error messages could be made more elaborate here const entity = switch (ctx) { .function => "functions", |
