| ... | ... | @@ -89,6 +89,7 @@ const RangeSet = @import("RangeSet.zig"); |
| 89 | 89 | const target_util = @import("target.zig"); |
| 90 | 90 | const Package = @import("Package.zig"); |
| 91 | 91 | const crash_report = @import("crash_report.zig"); |
| 92 | const build_options = @import("build_options"); |
| 92 | 93 | |
| 93 | 94 | pub const InstMap = std.AutoHashMapUnmanaged(Zir.Inst.Index, Air.Inst.Ref); |
| 94 | 95 | |
| ... | ... | @@ -20808,6 +20809,9 @@ pub fn resolveTypeLayout( |
| 20808 | 20809 | src: LazySrcLoc, |
| 20809 | 20810 | ty: Type, |
| 20810 | 20811 | ) CompileError!void { |
| 20812 | if (build_options.omit_stage2) |
| 20813 | @panic("sadly stage2 is omitted from this build to save memory on the CI server"); |
| 20814 | |
| 20811 | 20815 | switch (ty.zigTypeTag()) { |
| 20812 | 20816 | .Struct => return sema.resolveStructLayout(block, src, ty), |
| 20813 | 20817 | .Union => return sema.resolveUnionLayout(block, src, ty), |
| ... | ... | @@ -20974,6 +20978,8 @@ fn resolveUnionFully( |
| 20974 | 20978 | } |
| 20975 | 20979 | |
| 20976 | 20980 | pub fn resolveTypeFields(sema: *Sema, block: *Block, src: LazySrcLoc, ty: Type) CompileError!Type { |
| 20981 | if (build_options.omit_stage2) |
| 20982 | @panic("sadly stage2 is omitted from this build to save memory on the CI server"); |
| 20977 | 20983 | switch (ty.tag()) { |
| 20978 | 20984 | .@"struct" => { |
| 20979 | 20985 | const struct_obj = ty.castTag(.@"struct").?.data; |
| ... | ... | @@ -22256,6 +22262,8 @@ fn typePtrOrOptionalPtrTy( |
| 22256 | 22262 | /// TODO merge these implementations together with the "advanced"/sema_kit pattern seen |
| 22257 | 22263 | /// elsewhere in value.zig |
| 22258 | 22264 | pub fn typeRequiresComptime(sema: *Sema, block: *Block, src: LazySrcLoc, ty: Type) CompileError!bool { |
| 22265 | if (build_options.omit_stage2) |
| 22266 | @panic("sadly stage2 is omitted from this build to save memory on the CI server"); |
| 22259 | 22267 | return switch (ty.tag()) { |
| 22260 | 22268 | .u1, |
| 22261 | 22269 | .u8, |