aboutsummaryrefslogtreecommitdiff
path: root/src/type.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-09-29 00:13:21 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-09-29 00:13:21 -0700
commit99961f22dca7e01b85b7819dcea814ad01b65af5 (patch)
tree9c788bb803cf52cbb9928137b811b915097b46a7 /src/type.zig
parent33e77f127d8237088b561fae2ca0f4412bc1d6c9 (diff)
downloadzig-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.zig1
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);