diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-09-29 00:13:21 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-09-29 00:13:21 -0700 |
| commit | 99961f22dca7e01b85b7819dcea814ad01b65af5 (patch) | |
| tree | 9c788bb803cf52cbb9928137b811b915097b46a7 /src/type.zig | |
| parent | 33e77f127d8237088b561fae2ca0f4412bc1d6c9 (diff) | |
| download | zig-99961f22dca7e01b85b7819dcea814ad01b65af5.tar.gz zig-99961f22dca7e01b85b7819dcea814ad01b65af5.zip | |
stage2: enable building compiler_rt when using LLVM backend
* AstGen: fix emitting `store_to_inferred_ptr` when it should be emitting
`store` for a variable that has an explicit alignment.
* Compilation: fix a couple memory leaks
* Sema: implement support for locals that have specified alignment.
* Sema: implement `@intCast` when it needs to emit an AIR instruction.
* Sema: implement `@alignOf`
* Implement debug printing for extended alloc ZIR instructions.
Diffstat (limited to 'src/type.zig')
| -rw-r--r-- | src/type.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/type.zig b/src/type.zig index cb2cc6d58a..2525aecef6 100644 --- a/src/type.zig +++ b/src/type.zig @@ -3866,6 +3866,7 @@ pub const Type = extern union { }; pub const @"bool" = initTag(.bool); + pub const @"comptime_int" = initTag(.comptime_int); pub fn ptr(arena: *Allocator, d: Payload.Pointer.Data) !Type { assert(d.host_size == 0 or d.bit_offset < d.host_size * 8); |
