aboutsummaryrefslogtreecommitdiff
path: root/src/Sema.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-08-19 20:26:46 -0400
committerGitHub <noreply@github.com>2022-08-19 20:26:46 -0400
commite5e6eb983159df0a089e7d1c8efcea9006e253a9 (patch)
tree80611a8b7faca0d150bcb66c4d8403134a339a49 /src/Sema.zig
parent39f43fea8d0f6aa1c69cb7c3209f57f5ce00b273 (diff)
parentb75eeae5951f2dc4ff19f795ebd856c134722375 (diff)
downloadzig-e5e6eb983159df0a089e7d1c8efcea9006e253a9.tar.gz
zig-e5e6eb983159df0a089e7d1c8efcea9006e253a9.zip
Merge pull request #12368 from ziglang/stage3-default
make self-hosted the default compiler
Diffstat (limited to 'src/Sema.zig')
-rw-r--r--src/Sema.zig7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/Sema.zig b/src/Sema.zig
index 091b88e719..aa02288df7 100644
--- a/src/Sema.zig
+++ b/src/Sema.zig
@@ -27358,9 +27358,6 @@ pub fn resolveTypeLayout(
src: LazySrcLoc,
ty: Type,
) CompileError!void {
- if (build_options.omit_stage2)
- @panic("sadly stage2 is omitted from this build to save memory on the CI server");
-
switch (ty.zigTypeTag()) {
.Struct => return sema.resolveStructLayout(block, src, ty),
.Union => return sema.resolveUnionLayout(block, src, ty),
@@ -27699,8 +27696,6 @@ fn resolveUnionFully(
}
pub fn resolveTypeFields(sema: *Sema, block: *Block, src: LazySrcLoc, ty: Type) CompileError!Type {
- if (build_options.omit_stage2)
- @panic("sadly stage2 is omitted from this build to save memory on the CI server");
switch (ty.tag()) {
.@"struct" => {
const struct_obj = ty.castTag(.@"struct").?.data;
@@ -29323,8 +29318,6 @@ fn typePtrOrOptionalPtrTy(
/// TODO merge these implementations together with the "advanced"/sema_kit pattern seen
/// elsewhere in value.zig
pub fn typeRequiresComptime(sema: *Sema, block: *Block, src: LazySrcLoc, ty: Type) CompileError!bool {
- if (build_options.omit_stage2)
- @panic("sadly stage2 is omitted from this build to save memory on the CI server");
return switch (ty.tag()) {
.u1,
.u8,